TLS 1.3 ServerHello additional fix for PR4439 in Static RSA case

pull/4482/head
Hideki Miyazaki 2021-10-19 17:51:00 +09:00
parent 60adf22ce1
commit 91cd2b1731
No known key found for this signature in database
GPG Key ID: 7EB19ED9B9D5AC28
1 changed files with 2 additions and 0 deletions

View File

@ -3486,6 +3486,8 @@ int DoTls13ServerHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
if (!ssl->options.downgrade)
return BUFFER_ERROR;
#ifndef WOLFSSL_NO_TLS12
/* Force client hello version 1.2 to work for static RSA. */
ssl->chVersion.minor = TLSv1_2_MINOR;
ssl->version.minor = TLSv1_2_MINOR;
#endif
ssl->options.haveEMS = 0;