mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Merge pull request #2341 from miyazakh/fix_ricoh_buildfailure
fix build failure when enabling MYSQL_COMPATIBLE
This commit is contained in:
@ -5789,7 +5789,11 @@ static int TLSX_SupportedVersions_Parse(WOLFSSL* ssl, byte* input,
|
||||
set = 1;
|
||||
}
|
||||
if (!set) {
|
||||
#ifdef WOLFSSL_MYSQL_COMPATIBLE
|
||||
SendAlert(ssl, alert_fatal, wc_protocol_version);
|
||||
#else
|
||||
SendAlert(ssl, alert_fatal, protocol_version);
|
||||
#endif
|
||||
return VERSION_ERROR;
|
||||
}
|
||||
}
|
||||
|
@ -3952,7 +3952,11 @@ int DoTls13ClientHello(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
||||
i += OPAQUE16_LEN;
|
||||
if (pv.major < SSLv3_MAJOR) {
|
||||
WOLFSSL_MSG("Legacy version field contains unsupported value");
|
||||
#ifdef WOLFSSL_MYSQL_COMPATIBLE
|
||||
SendAlert(ssl, alert_fatal, wc_protocol_version);
|
||||
#else
|
||||
SendAlert(ssl, alert_fatal, protocol_version);
|
||||
#endif
|
||||
return INVALID_PARAMETER;
|
||||
}
|
||||
/* Legacy protocol version cannot negotiate TLS 1.3 or higher. */
|
||||
|
Reference in New Issue
Block a user