mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34: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;
|
||||
|
||||
ret = CheckVersion(ssl, pv);
|
||||
if (ret != 0)
|
||||
if (ret != 0) {
|
||||
SendAlert(ssl, alert_fatal, wolfssl_alert_protocol_version);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifdef WOLFSSL_TLS13
|
||||
if (IsAtLeastTLSv1_3(pv)) {
|
||||
|
Reference in New Issue
Block a user