diff options
author | Jaroslav Škarvada <jskarvad@redhat.com> | 2021-11-27 21:07:15 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2021-11-28 18:07:54 +0000 |
commit | ff7829398d74e67f1c1f40339a772fd76708e5ac (patch) | |
tree | 7dd65d697d2bcf7e436176ca812afb954b1e5215 | |
parent | 2ba76be6f9d89d993092bad22a788fedf816ce77 (diff) |
Fix build for OpenSSL 3.0.0 . Bug 2810
-rw-r--r-- | src/src/tls-openssl.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/src/tls-openssl.c b/src/src/tls-openssl.c index 830978e04..512f5412e 100644 --- a/src/src/tls-openssl.c +++ b/src/src/tls-openssl.c @@ -232,10 +232,14 @@ static exim_openssl_option exim_openssl_options[] = { { US"no_tlsv1", SSL_OP_NO_TLSv1 }, #endif #ifdef SSL_OP_NO_TLSv1_1 -# if SSL_OP_NO_TLSv1_1 == 0x00000400L +# if OPENSSL_VERSION_NUMBER < 0x30000000L +# if SSL_OP_NO_TLSv1_1 == 0x00000400L /* Error in chosen value in 1.0.1a; see first item in CHANGES for 1.0.1b */ -# warning OpenSSL 1.0.1a uses a bad value for SSL_OP_NO_TLSv1_1, ignoring -# else +# warning OpenSSL 1.0.1a uses a bad value for SSL_OP_NO_TLSv1_1, ignoring +# define NO_SSL_OP_NO_TLSv1_1 +# endif +# endif +# ifndef NO_SSL_OP_NO_TLSv1_1 { US"no_tlsv1_1", SSL_OP_NO_TLSv1_1 }, # endif #endif |