mirror of https://github.com/wolfSSL/wolfssl.git
Merge pull request #3771 from JacobBarthelmeh/Testing
fix build for apache without tls 1.3pull/3772/head
commit
5dc6de3063
|
@ -5323,6 +5323,7 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup)
|
|||
ssl->options.mask = ctx->mask;
|
||||
#endif
|
||||
#ifdef OPENSSL_EXTRA
|
||||
#ifdef WOLFSSL_TLS13
|
||||
if (ssl->version.minor == TLSv1_3_MINOR &&
|
||||
(ssl->options.mask & SSL_OP_NO_TLSv1_3) == SSL_OP_NO_TLSv1_3) {
|
||||
if (!ctx->method->downgrade) {
|
||||
|
@ -5333,6 +5334,7 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup)
|
|||
WOLFSSL_MSG("\tOption set to not allow TLSv1.3, Downgrading");
|
||||
ssl->version.minor = TLSv1_2_MINOR;
|
||||
}
|
||||
#endif
|
||||
if (ssl->version.minor == TLSv1_2_MINOR &&
|
||||
(ssl->options.mask & SSL_OP_NO_TLSv1_2) == SSL_OP_NO_TLSv1_2) {
|
||||
if (!ctx->method->downgrade) {
|
||||
|
|
Loading…
Reference in New Issue