mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #1971 from SparkiDev/tls13_old_hello
Don't expect old ClientHello when version is TLS 1.3
This commit is contained in:
@ -8194,7 +8194,7 @@ int wolfSSL_accept_TLSv13(WOLFSSL* ssl)
|
||||
case TLS13_ACCEPT_FIRST_REPLY_DONE :
|
||||
if (ssl->options.serverState ==
|
||||
SERVER_HELLO_RETRY_REQUEST_COMPLETE) {
|
||||
ssl->options.clientState = NULL_STATE;
|
||||
ssl->options.clientState = CLIENT_HELLO_RETRY;
|
||||
while (ssl->options.clientState < CLIENT_HELLO_COMPLETE) {
|
||||
if ((ssl->error = ProcessReply(ssl)) < 0) {
|
||||
WOLFSSL_ERROR(ssl->error);
|
||||
|
@ -1508,6 +1508,7 @@ enum states {
|
||||
SERVER_CHANGECIPHERSPEC_COMPLETE,
|
||||
SERVER_FINISHED_COMPLETE,
|
||||
|
||||
CLIENT_HELLO_RETRY,
|
||||
CLIENT_HELLO_COMPLETE,
|
||||
CLIENT_KEYEXCHANGE_COMPLETE,
|
||||
CLIENT_CHANGECIPHERSPEC_COMPLETE,
|
||||
|
Reference in New Issue
Block a user