aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2016-04-24 12:58:51 +0200
committerMatthias Andree <matthias.andree@gmx.de>2016-04-24 12:58:51 +0200
commit403098f47887f18240fa0102668083201eedd47a (patch)
tree47b52665a3abb09e10d49b2cf72d64b9fc1f19d7
parent91c673784ad611aa8a3362f56c7626dc58c2d8ee (diff)
downloadfetchmail-403098f47887f18240fa0102668083201eedd47a.tar.gz
fetchmail-403098f47887f18240fa0102668083201eedd47a.tar.bz2
fetchmail-403098f47887f18240fa0102668083201eedd47a.zip
Enable TLS 1.1/1.2 options on LibreSSL.
LibreSSL does not provide a TLS_MAX_VERSION, so do not refer to it.
-rw-r--r--socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index d197c923..ed3643b1 100644
--- a/socket.c
+++ b/socket.c
@@ -946,7 +946,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck
_ctx[sock] = SSL_CTX_new(TLSv1_client_method());
} else if(!strcasecmp("tls1+",myproto)) {
myproto = NULL;
-#if defined(TLS1_1_VERSION) && TLS_MAX_VERSION >= TLS1_1_VERSION
+#if defined(TLS1_1_VERSION)
} else if(!strcasecmp("tls1.1",myproto)) {
_ctx[sock] = SSL_CTX_new(TLSv1_1_client_method());
} else if(!strcasecmp("tls1.1+",myproto)) {
@@ -957,7 +957,7 @@ int SSLOpen(int sock, char *mycert, char *mykey, const char *myproto, int certck
report(stderr, GT_("Your OpenSSL version does not support TLS v1.1.\n"));
return -1;
#endif
-#if defined(TLS1_2_VERSION) && TLS_MAX_VERSION >= TLS1_2_VERSION
+#if defined(TLS1_2_VERSION)
} else if(!strcasecmp("tls1.2",myproto)) {
_ctx[sock] = SSL_CTX_new(TLSv1_2_client_method());
} else if(!strcasecmp("tls1.2+",myproto)) {