From 0b881933b0e07797282a82c475542f02b63c834b Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Thu, 5 Mar 2020 14:05:35 -0700 Subject: [PATCH] always turn on interop with older protocol exchange --- src/internal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/internal.c b/src/internal.c index 2a49070..337484e 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1404,15 +1404,14 @@ static int GetInputText(WOLFSSH* ssh, byte** pEol) eol = WSTRNSTR((const char*)ssh->inputBuffer.buffer, "\r\n", ssh->inputBuffer.length); -#ifndef WOLFSSH_STRICT_PROTOCOL_EXCHANGE + /* section 4.2 in RFC 4253 states that can be lenient on the CR for * interop with older or undocumented versions of SSH */ if (!eol) { - WLOG(WS_LOG_DEBUG, "Checking for older version of protocol exchange"); + WLOG(WS_LOG_DEBUG, "Checking for old version of protocol exchange"); eol = WSTRNSTR((const char*)ssh->inputBuffer.buffer, "\n", ssh->inputBuffer.length); } -#endif if (eol) gotLine = 1;