diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2013-03-13 21:57:45 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2013-07-13 14:55:47 +0200 |
commit | 81e769ec6a75c679694e6b7e6e1288ae63b96991 (patch) | |
tree | 695483b27e86999f0fd9a558be52c374e086ac07 /include/libssh | |
parent | e809fa881ef999286455236db071224d08405773 (diff) | |
download | libssh-81e769ec6a75c679694e6b7e6e1288ae63b96991.tar.gz libssh-81e769ec6a75c679694e6b7e6e1288ae63b96991.tar.xz libssh-81e769ec6a75c679694e6b7e6e1288ae63b96991.zip |
channels: implement callback for agent forwarding request
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r-- | include/libssh/callbacks.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h index f9e1126f..06b8678a 100644 --- a/include/libssh/callbacks.h +++ b/include/libssh/callbacks.h @@ -481,6 +481,16 @@ typedef int (*ssh_channel_pty_request_callback) (ssh_session session, typedef int (*ssh_channel_shell_request_callback) (ssh_session session, ssh_channel channel, void *userdata); +/** + * @brief SSH auth-agent-request from the client. This request is + * sent by a client when agent forwarding is available. + * Server is free to ignore this callback, no answer is expected. + * @param channel the channel + * @param userdata Userdata to be passed to the callback function. + */ +typedef void (*channel_auth_agent_req_callback) (ssh_session session, + ssh_channel channel, + void *userdata); struct ssh_channel_callbacks_struct { /** DON'T SET THIS use ssh_callbacks_init() instead. */ size_t size; @@ -520,6 +530,10 @@ struct ssh_channel_callbacks_struct { * This function will be called when a client requests a shell */ ssh_channel_shell_request_callback channel_shell_request_function; + /** This function will be called when a client requests agent + * authentication forwarding. + */ + channel_auth_agent_req_callback channel_auth_agent_req_function; }; typedef struct ssh_channel_callbacks_struct *ssh_channel_callbacks; |