mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 04:04:39 +02:00
tls: send protocol_version fatal alert on version mismatch
see rfc5246 Appendix E
This commit is contained in:
@@ -26409,8 +26409,10 @@ static int HashSkeData(WOLFSSL* ssl, enum wc_HashType hashType,
|
|||||||
i += OPAQUE16_LEN;
|
i += OPAQUE16_LEN;
|
||||||
|
|
||||||
ret = CheckVersion(ssl, pv);
|
ret = CheckVersion(ssl, pv);
|
||||||
if (ret != 0)
|
if (ret != 0) {
|
||||||
|
SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version);
|
||||||
return ret;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef WOLFSSL_TLS13
|
#ifdef WOLFSSL_TLS13
|
||||||
if (IsAtLeastTLSv1_3(pv)) {
|
if (IsAtLeastTLSv1_3(pv)) {
|
||||||
|
Reference in New Issue
Block a user