mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Disallow SupportedGroups in ServerHello for TLS 1.3
But allowed when downgrading to TLS 1.2.
This commit is contained in:
@@ -9654,6 +9654,11 @@ int TLSX_Parse(WOLFSSL* ssl, byte* input, word16 length, byte msgType,
|
|||||||
msgType == encrypted_extensions) {
|
msgType == encrypted_extensions) {
|
||||||
return EXT_NOT_ALLOWED;
|
return EXT_NOT_ALLOWED;
|
||||||
}
|
}
|
||||||
|
else if (IsAtLeastTLSv1_3(ssl->ctx->method->version) &&
|
||||||
|
msgType == server_hello &&
|
||||||
|
!ssl->options.downgrade) {
|
||||||
|
return EXT_NOT_ALLOWED;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
ret = EC_PARSE(ssl, input + offset, size, isRequest);
|
ret = EC_PARSE(ssl, input + offset, size, isRequest);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user