blob: 7331f5c1e775cdb346a7b2207c269baf92f6ad1a (
plain)
1 diff --git a/src/tls-openssl.c b/src/tls-openssl.c
2 index bc454c8..c6da62c 100644
3 --- a/src/tls-openssl.c
4 +++ b/src/tls-openssl.c
5 @@ -232,10 +232,14 @@ static exim_openssl_option exim_openssl_options[] = {
6 { US"no_tlsv1", SSL_OP_NO_TLSv1 },
7 #endif
8 #ifdef SSL_OP_NO_TLSv1_1
9 -# if SSL_OP_NO_TLSv1_1 == 0x00000400L
10 +# if OPENSSL_VERSION_NUMBER < 0x30000000L
11 +# if SSL_OP_NO_TLSv1_1 == 0x00000400L
12 /* Error in chosen value in 1.0.1a; see first item in CHANGES for 1.0.1b */
13 -# warning OpenSSL 1.0.1a uses a bad value for SSL_OP_NO_TLSv1_1, ignoring
14 -# else
15 +# warning OpenSSL 1.0.1a uses a bad value for SSL_OP_NO_TLSv1_1, ignoring
16 +# define NO_SSL_OP_NO_TLSv1_1
17 +# endif
18 +# endif
19 +# ifndef NO_SSL_OP_NO_TLSv1_1
20 { US"no_tlsv1_1", SSL_OP_NO_TLSv1_1 },
21 # endif
22 #endif
|