Merge pull request #2029 from SparkiDev/sni_tls13

Fix SNI on client when downgrading from TLS 1.3
This commit is contained in:
toddouska
2019-01-18 08:59:47 -08:00
committed by GitHub

View File

@ -9590,6 +9590,7 @@ int TLSX_Parse(WOLFSSL* ssl, byte* input, word16 length, byte msgType,
#ifdef WOLFSSL_TLS13
if (IsAtLeastTLSv1_3(ssl->ctx->method->version) &&
msgType != client_hello &&
msgType != server_hello &&
msgType != encrypted_extensions) {
return EXT_NOT_ALLOWED;
}