diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-23 16:33:59 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-08-23 16:33:59 +0200 |
commit | 8bae43876fff891e33d48b177778ee4cb882c45a (patch) | |
tree | 5c30ea9b6f73de5b116ad35e73f6da5bb2e6a301 /libssh | |
parent | e707af1cd78f730e80da7b109ee33985d0ee3419 (diff) | |
download | libssh-8bae43876fff891e33d48b177778ee4cb882c45a.tar.gz libssh-8bae43876fff891e33d48b177778ee4cb882c45a.tar.xz libssh-8bae43876fff891e33d48b177778ee4cb882c45a.zip |
experimental callback system
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/keys.c | 2 | ||||
-rw-r--r-- | libssh/server.c | 2 | ||||
-rw-r--r-- | libssh/session.c | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/libssh/keys.c b/libssh/keys.c index 77d554d8..1382b765 100644 --- a/libssh/keys.c +++ b/libssh/keys.c @@ -1152,7 +1152,7 @@ ssh_string ssh_do_sign_with_agent(ssh_session session, /* * This function concats in a buffer the values needed to do a signature * verification. */ -ssh_buffer ssh_userauth_build_digest(SSH_SESSION *session, struct ssh_message *msg, char *service) { +ssh_buffer ssh_userauth_build_digest(SSH_SESSION *session, ssh_message msg, char *service) { /* The value of 'signature' is a signature by the corresponding private key over the following data, in the following order: diff --git a/libssh/server.c b/libssh/server.c index 4f7f73b1..43b1d31b 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -829,7 +829,7 @@ char *ssh_message_channel_request_subsystem(SSH_MESSAGE *msg){ * must take care of the response). */ void ssh_set_message_callback(SSH_SESSION *session, - int(*ssh_message_callback)(ssh_session session, struct ssh_message *msg)){ + int(*ssh_message_callback)(ssh_session session, ssh_message msg)){ session->ssh_message_callback=ssh_message_callback; } diff --git a/libssh/session.c b/libssh/session.c index e85bd5fb..38e1b114 100644 --- a/libssh/session.c +++ b/libssh/session.c @@ -26,6 +26,7 @@ #include "libssh/libssh.h" #include "libssh/priv.h" #include "libssh/server.h" +#include "libssh/callback.h" #define FIRST_CHANNEL 42 // why not ? it helps to find bugs. /** \defgroup ssh_session SSH Session |