mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-29 13:01:13 +03:00
tests: Added functions to get the default callbacks
This makes easier to create test cases using callbacks based on the default callbacks (e.g. using the default callbacks but replacing one specific callback) Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
13aa791e7b
commit
29445e4ff1
@ -162,7 +162,15 @@ int channel_write_wontblock_cb(ssh_session session,
|
||||
|
||||
ssh_channel channel_new_session_cb(ssh_session session, void *userdata);
|
||||
|
||||
/* The caller is responsible to set the userdata to be provided to the callback
|
||||
* The caller is responsible to free the allocated structure
|
||||
* */
|
||||
struct ssh_server_callbacks_struct *get_default_server_cb(void);
|
||||
|
||||
/* The caller is responsible to set the userdata to be provided to the callback
|
||||
* The caller is responsible to free the allocated structure
|
||||
* */
|
||||
struct ssh_channel_callbacks_struct *get_default_channel_cb(void);
|
||||
|
||||
void default_handle_session_cb(ssh_event event, ssh_session session,
|
||||
struct server_state_st *state);
|
||||
|
Reference in New Issue
Block a user