1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-29 13:01:13 +03:00

tests: Provide the server state to callbacks

This aims to make it easier to implement custom callbacks.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2019-01-08 13:58:45 +01:00
committed by Andreas Schneider
parent 7f18a27504
commit 13aa791e7b
2 changed files with 11 additions and 0 deletions

View File

@ -749,6 +749,9 @@ void default_handle_session_cb(ssh_event event,
goto end;
}
sdata.server_state = (void *)state;
cdata.server_state = (void *)state;
#ifdef WITH_PCAP
set_pcap(&sdata, session, state->pcap_file);
#endif