File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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. */
786788INLINE 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) {
You can’t perform that action at this time.
0 commit comments