mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Merge pull request #7619 from lealem47/zd18074
Fix for TLS1.3 to 1.2 downgrade
This commit is contained in:
@ -5298,6 +5298,13 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif /* WOLFSSL_DTLS13 */
|
#endif /* WOLFSSL_DTLS13 */
|
||||||
|
|
||||||
|
#ifndef WOLFSSL_NO_TLS12
|
||||||
|
return DoServerHello(ssl, input, inOutIdx, helloSz);
|
||||||
|
#else
|
||||||
|
SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version);
|
||||||
|
return VERSION_ERROR;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user