@@ -647,6 +647,8 @@ INLINE static int IsMessageAllowedServer(WOLFSSH *ssh, word32 msg)
647647#ifndef NO_WOLFSSH_CLIENT
648648INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, word32 msg)
649649{
650+ WLOG(WS_LOG_DEBUG, "Checking %u\n", msg);
651+
650652 /* Only the client should send these messages, never receive. */
651653 if (msg == MSGID_SERVICE_REQUEST || msg == MSGID_USERAUTH_REQUEST) {
652654 WLOG(WS_LOG_DEBUG, "Message ID %u not allowed by %s %s",
@@ -700,6 +702,7 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, word32 msg)
700702
701703 /* Has client userauth started? */
702704 if (ssh->connectState < CONNECT_CLIENT_KEXDH_INIT_SENT) {
705+ WLOG(WS_LOG_DEBUG, "!!!");
703706 if (msg >= MSGID_KEXDH_GEX_REQUEST) {
704707 return 0;
705708 }
@@ -729,7 +732,7 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, word32 msg)
729732#endif /* NO_WOLFSSH_CLIENT */
730733
731734
732- INLINE static int IsMessageAllowed(WOLFSSH *ssh, word32 msg)
735+ INLINE static int IsMessageAllowed(WOLFSSH *ssh, int msg)
733736{
734737#ifndef NO_WOLFSSH_SERVER
735738 if (ssh->ctx->side == WOLFSSH_ENDPOINT_SERVER) {
0 commit comments