Skip to content

Commit 3f81a79

Browse files
committed
WIP remove Iskeyingallowed as it is stepping on the wrong messages.
1 parent b5d8145 commit 3f81a79

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/internal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,6 +595,7 @@ static void HandshakeInfoFree(HandshakeInfo* hs, void* heap)
595595
}
596596

597597

598+
#if 0
598599
/* RFC 4253 section 7.1, Once having sent SSH_MSG_KEXINIT the only messages
599600
* that can be sent are 1-19 (except SSH_MSG_SERVICE_REQUEST and
600601
* SSH_MSG_SERVICE_ACCEPT), 20-29 (except SSH_MSG_KEXINIT again), and 30-49
@@ -627,6 +628,7 @@ INLINE static int IsMessageAllowedKeying(WOLFSSH *ssh, byte msg)
627628
}
628629
return 1;
629630
}
631+
#endif
630632

631633

632634
#ifndef NO_WOLFSSH_SERVER
@@ -785,9 +787,11 @@ INLINE static int IsMessageAllowedClient(WOLFSSH *ssh, byte msg)
785787
* Returns 1 if allowed 0 if not allowed. */
786788
INLINE static int IsMessageAllowed(WOLFSSH *ssh, byte msg, byte state)
787789
{
790+
#if 0
788791
if (!IsMessageAllowedKeying(ssh, msg)) {
789792
return 0;
790793
}
794+
#endif
791795

792796
#ifndef NO_WOLFSSH_SERVER
793797
if (ssh->ctx->side == WOLFSSH_ENDPOINT_SERVER) {

0 commit comments

Comments
 (0)