mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 10:40:27 +09:00
remove the broken setters for options,cb init macro
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
#define _SSH_CALLBACK_H
|
#define _SSH_CALLBACK_H
|
||||||
|
|
||||||
#include "libssh.h"
|
#include "libssh.h"
|
||||||
|
#include <string.h>
|
||||||
/**
|
/**
|
||||||
* @brief SSH authentication callback.
|
* @brief SSH authentication callback.
|
||||||
*
|
*
|
||||||
@@ -55,6 +55,10 @@ struct ssh_callbacks_struct {
|
|||||||
};
|
};
|
||||||
|
|
||||||
typedef struct ssh_callbacks_struct * ssh_callbacks;
|
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,
|
LIBSSH_API int ssh_options_set_auth_callback(SSH_OPTIONS *opt, ssh_auth_callback cb,
|
||||||
void *userdata);
|
void *userdata);
|
||||||
|
|||||||
@@ -252,13 +252,6 @@ enum ssh_options_e {
|
|||||||
SSH_OPTIONS_SSH2,
|
SSH_OPTIONS_SSH2,
|
||||||
SSH_OPTIONS_LOG_VERBOSITY,
|
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_C_S,
|
||||||
SSH_OPTIONS_CIPHERS_S_C,
|
SSH_OPTIONS_CIPHERS_S_C,
|
||||||
SSH_OPTIONS_COMPRESSION_C_S,
|
SSH_OPTIONS_COMPRESSION_C_S,
|
||||||
|
|||||||
Reference in New Issue
Block a user