Add a public API for the SendDisconnect() function.

pull/197/head
John Safranek 2019-09-12 16:13:47 -07:00
parent 66ff87c0a8
commit 915c1bced9
2 changed files with 7 additions and 0 deletions

View File

@ -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) {

View File

@ -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*,