forked from wolfSSL/wolfssl
add SanityCheckMsgReceived in ProcessOldClientHello
This commit is contained in:
committed by
Jacob Barthelmeh
parent
d6e22346e3
commit
0a3d6534c7
@ -22521,6 +22521,7 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
word16 i, j;
|
word16 i, j;
|
||||||
ProtocolVersion pv;
|
ProtocolVersion pv;
|
||||||
Suites clSuites;
|
Suites clSuites;
|
||||||
|
int ret = -1;
|
||||||
|
|
||||||
(void)inSz;
|
(void)inSz;
|
||||||
WOLFSSL_MSG("Got old format client hello");
|
WOLFSSL_MSG("Got old format client hello");
|
||||||
@ -22660,7 +22661,6 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
ssl->options.haveSessionId = 1;
|
ssl->options.haveSessionId = 1;
|
||||||
/* DoClientHello uses same resume code */
|
/* DoClientHello uses same resume code */
|
||||||
if (ssl->options.resuming) { /* let's try */
|
if (ssl->options.resuming) { /* let's try */
|
||||||
int ret = -1;
|
|
||||||
WOLFSSL_SESSION* session = GetSession(ssl,
|
WOLFSSL_SESSION* session = GetSession(ssl,
|
||||||
ssl->arrays->masterSecret, 1);
|
ssl->arrays->masterSecret, 1);
|
||||||
#ifdef HAVE_SESSION_TICKET
|
#ifdef HAVE_SESSION_TICKET
|
||||||
@ -22702,7 +22702,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return MatchSuite(ssl, &clSuites);
|
ret = MatchSuite(ssl, &clSuites);
|
||||||
|
if (ret != 0)return ret;
|
||||||
|
return SanityCheckMsgReceived(ssl, client_hello);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* OLD_HELLO_ALLOWED */
|
#endif /* OLD_HELLO_ALLOWED */
|
||||||
|
Reference in New Issue
Block a user