diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:30:56 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-09-23 21:30:56 +0200 |
commit | 5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf (patch) | |
tree | 883fa0fdb2a0964ef161521cebb3b70379d621ff /include/libssh/priv.h | |
parent | ab60d1d67847f2af20604f8890381a0cbbed0524 (diff) | |
download | libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.tar.gz libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.tar.xz libssh-5bd38a5f376772cc4be5d59d8cfa9a6ff9a517cf.zip |
Changed the current callback sys to be scalable
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index 1d5414bf..87bf1bfc 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -45,7 +45,7 @@ #include "config.h" #include "libssh/libssh.h" - +#include "libssh/callback.h" /* some constants */ #define MAX_PACKET_LEN 262144 #define ERROR_BUFFERLEN 1024 @@ -285,10 +285,7 @@ struct ssh_options_struct { int use_nonexisting_algo; /* if user sets a not supported algorithm for kex, don't complain */ char *wanted_methods[10]; /* the kex methods can be choosed. better use the kex fonctions to do that */ void *wanted_cookie; /* wants a specific cookie to be sent ? if null, generate a new one */ - ssh_auth_callback auth_function; /* this functions will be called if e.g. a keyphrase is needed. */ - void *auth_userdata; - void (*connect_status_function)(void *arg, float status); /* status callback function */ - void *connect_status_arg; /* arbitrary argument */ + ssh_callbacks callbacks; /* Callbacks to user functions */ long timeout; /* seconds */ long timeout_usec; int ssh2allowed; @@ -296,8 +293,7 @@ struct ssh_options_struct { char *dsakey; char *rsakey; /* host key for server implementation */ int log_verbosity; - ssh_log_callback log_function; //log callback - void *log_userdata; + }; typedef struct ssh_crypto_struct { |