diff --git a/src/ssh.c b/src/ssh.c index d08aae92..4741a602 100644 --- a/src/ssh.c +++ b/src/ssh.c @@ -1022,6 +1022,12 @@ int wolfSSH_SendIgnore(WOLFSSH* ssh, const byte* buf, word32 bufSz) } +int wolfSSH_SendDisconnect(WOLFSSH* ssh, word32 reason) +{ + return SendDisconnect(ssh, reason); +} + + void wolfSSH_SetUserAuth(WOLFSSH_CTX* ctx, WS_CallbackUserAuth cb) { if (ctx != NULL) { diff --git a/wolfssh/ssh.h b/wolfssh/ssh.h index df49c637..f2657abd 100644 --- a/wolfssh/ssh.h +++ b/wolfssh/ssh.h @@ -184,6 +184,7 @@ WOLFSSH_API int wolfSSH_stream_exit(WOLFSSH*, int); WOLFSSH_API int wolfSSH_extended_data_read(WOLFSSH*, byte*, word32); WOLFSSH_API int wolfSSH_TriggerKeyExchange(WOLFSSH*); WOLFSSH_API int wolfSSH_SendIgnore(WOLFSSH*, const byte*, word32); +WOLFSSH_API int wolfSSH_SendDisconnect(WOLFSSH*, word32); WOLFSSH_API int wolfSSH_global_request(WOLFSSH*, const unsigned char*, word32, int); WOLFSSH_API void wolfSSH_GetStats(WOLFSSH*,