@@ -7913,12 +7913,7 @@ static int DoUserAuthSuccess(WOLFSSH* ssh,
79137913 return ret;
79147914 }
79157915
7916- #ifdef WOLFSSH_KEYBOARD_INTERACTIVE
7917- if (ssh->serverState == SERVER_USERAUTH_ACCEPT_KEYBOARD)
7918- ssh->serverState = SERVER_USERAUTH_ACCEPT_KEYBOARD_DONE;
7919- else
7920- #endif
7921- ssh->serverState = SERVER_USERAUTH_ACCEPT_DONE;
7916+ ssh->serverState = SERVER_USERAUTH_ACCEPT_DONE;
79227917
79237918 WLOG(WS_LOG_DEBUG, "Leaving DoUserAuthSuccess(), ret = %d", ret);
79247919 return ret;
@@ -7971,7 +7966,6 @@ static int DoUserAuthInfoRequest(WOLFSSH* ssh, byte* buf, word32 len,
79717966 if (ssh == NULL || buf == NULL || len == 0 || idx == NULL)
79727967 ret = WS_BAD_ARGUMENT;
79737968
7974-
79757969 if (ret == WS_SUCCESS) {
79767970 begin = *idx;
79777971 ret = GetStringAlloc(ssh->ctx->heap, (char**)&authName, buf, len,
@@ -8046,8 +8040,9 @@ static int DoUserAuthInfoRequest(WOLFSSH* ssh, byte* buf, word32 len,
80468040 WFREE(language, ssh->ctx->heap, DYNTYPE_STRING);
80478041 }
80488042
8049- if (ret == WS_SUCCESS)
8050- ssh->serverState = SERVER_USERAUTH_ACCEPT_KEYBOARD;
8043+ if (ret == WS_SUCCESS) {
8044+ ret = SendUserAuthKeyboardResponse(ssh);
8045+ }
80518046
80528047 WLOG(WS_LOG_DEBUG, "Leaving DoUserAuthInfoRequest(), ret = %d", ret);
80538048
0 commit comments