Disallow SupportedGroups in ServerHello for TLS 1.3

But allowed when downgrading to TLS 1.2.
This commit is contained in:
Sean Parkinson 2019-02-04 08:58:17 +10:00
parent c080050c80
commit b7179c2a54

View File

@ -9654,6 +9654,11 @@ int TLSX_Parse(WOLFSSL* ssl, byte* input, word16 length, byte msgType,
msgType == encrypted_extensions) {
return EXT_NOT_ALLOWED;
}
else if (IsAtLeastTLSv1_3(ssl->ctx->method->version) &&
msgType == server_hello &&
!ssl->options.downgrade) {
return EXT_NOT_ALLOWED;
}
#endif
ret = EC_PARSE(ssl, input + offset, size, isRequest);
break;