Lines 1-15
Link Here
|
1 |
--- imap/tls.c.orig 2016-07-22 01:55:57 UTC |
1 |
--- imap/tls.c.orig 2017-05-09 00:40:13 UTC |
2 |
+++ imap/tls.c |
2 |
+++ imap/tls.c |
3 |
@@ -222,7 +222,7 @@ static RSA *tmp_rsa_cb(SSL * s __attribu |
3 |
@@ -222,7 +222,8 @@ static RSA *tmp_rsa_cb(SSL * s __attribu |
4 |
} |
4 |
} |
5 |
#endif |
5 |
#endif |
6 |
|
6 |
|
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
7 |
-#if OPENSSL_VERSION_NUMBER < 0x10100000L |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
8 |
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \ |
|
|
9 |
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) |
9 |
/* replacements for new 1.1 API accessors */ |
10 |
/* replacements for new 1.1 API accessors */ |
10 |
/* XXX probably put these somewhere central */ |
11 |
/* XXX probably put these somewhere central */ |
11 |
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) |
12 |
static int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g) |
12 |
@@ -723,7 +723,9 @@ EXPORTED int tls_init_serverengine(c |
13 |
@@ -726,7 +727,9 @@ EXPORTED int tls_init_serverengine(c |
13 |
off |= SSL_OP_ALL; /* Work around all known bugs */ |
14 |
off |= SSL_OP_ALL; /* Work around all known bugs */ |
14 |
off |= SSL_OP_NO_SSLv2; /* Disable insecure SSLv2 */ |
15 |
off |= SSL_OP_NO_SSLv2; /* Disable insecure SSLv2 */ |
15 |
off |= SSL_OP_NO_SSLv3; /* Disable insecure SSLv3 */ |
16 |
off |= SSL_OP_NO_SSLv3; /* Disable insecure SSLv3 */ |
Lines 19-25
Link Here
|
19 |
|
20 |
|
20 |
const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS); |
21 |
const char *tls_versions = config_getstring(IMAPOPT_TLS_VERSIONS); |
21 |
|
22 |
|
22 |
@@ -1441,7 +1443,9 @@ HIDDEN int tls_init_clientengine(int ver |
23 |
@@ -1448,7 +1451,9 @@ HIDDEN int tls_init_clientengine(int ver |
23 |
off |= SSL_OP_ALL; /* Work around all known bugs */ |
24 |
off |= SSL_OP_ALL; /* Work around all known bugs */ |
24 |
off |= SSL_OP_NO_SSLv2; /* Disable insecure SSLv2 */ |
25 |
off |= SSL_OP_NO_SSLv2; /* Disable insecure SSLv2 */ |
25 |
off |= SSL_OP_NO_SSLv3; /* Disable insecure SSLv3 */ |
26 |
off |= SSL_OP_NO_SSLv3; /* Disable insecure SSLv3 */ |