remove the broken setters for options,cb init macro

This commit is contained in:
Aris Adamantiadis
2009-09-23 21:40:58 +02:00
parent 5bd38a5f37
commit ffed8b03bb
2 changed files with 5 additions and 8 deletions

View File

@@ -27,7 +27,7 @@
#define _SSH_CALLBACK_H
#include "libssh.h"
#include <string.h>
/**
* @brief SSH authentication callback.
*
@@ -55,6 +55,10 @@ struct ssh_callbacks_struct {
};
typedef struct ssh_callbacks_struct * ssh_callbacks;
#define ssh_callbacks_init(p) do {\
memset(p,'\0',sizeof(*p)); \
p->size=sizeof(*p); \
} while(0);
LIBSSH_API int ssh_options_set_auth_callback(SSH_OPTIONS *opt, ssh_auth_callback cb,
void *userdata);

View File

@@ -252,13 +252,6 @@ enum ssh_options_e {
SSH_OPTIONS_SSH2,
SSH_OPTIONS_LOG_VERBOSITY,
SSH_OPTIONS_AUTH_CALLBACK,
SSH_OPTIONS_AUTH_USERDATA,
SSH_OPTIONS_LOG_CALLBACK,
SSH_OPTIONS_LOG_USERDATA,
SSH_OPTIONS_STATUS_CALLBACK,
SSH_OPTIONS_STATUS_ARG,
SSH_OPTIONS_CIPHERS_C_S,
SSH_OPTIONS_CIPHERS_S_C,
SSH_OPTIONS_COMPRESSION_C_S,