Skip to content

Commit ff6f6f4

Browse files
committed
WIP
1 parent 00808ca commit ff6f6f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/internal.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,8 @@ INLINE static int IsMessageAllowedServer(WOLFSSH *ssh, word32 msg)
647647
#ifndef NO_WOLFSSH_CLIENT
648648
INLINE 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

Comments
 (0)