diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2016-04-24 12:58:51 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2016-04-24 12:58:51 +0200 |
commit | 403098f47887f18240fa0102668083201eedd47a (patch) | |
tree | 47b52665a3abb09e10d49b2cf72d64b9fc1f19d7 /socket.c | |
parent | 91c673784ad611aa8a3362f56c7626dc58c2d8ee (diff) | |
download | fetchmail-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.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) { |