summaryrefslogtreecommitdiff
path: root/imap/src/osdep/nt
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2018-09-30 11:57:40 -0600
committerEduardo Chappa <chappa@washington.edu>2018-09-30 11:57:40 -0600
commitd566a9e20e2712617661b9fb00689534ec3be7f4 (patch)
treed7cc254f4c7758286b48e45ce6532d02fc738df2 /imap/src/osdep/nt
parent924c47dd50a7b74136b8a60e9ea8d347ff65425b (diff)
downloadalpine-d566a9e20e2712617661b9fb00689534ec3be7f4.tar.xz
* Define TLS_client_version to be the highest TLSv1*_client_method
that is available in case that this is not defined by OpenSSL.
Diffstat (limited to 'imap/src/osdep/nt')
-rw-r--r--imap/src/osdep/nt/ssl_nt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/imap/src/osdep/nt/ssl_nt.c b/imap/src/osdep/nt/ssl_nt.c
index b4d7e1d2..5b39f63b 100644
--- a/imap/src/osdep/nt/ssl_nt.c
+++ b/imap/src/osdep/nt/ssl_nt.c
@@ -34,6 +34,15 @@
#include <bio.h>
#include <crypto.h>
#include <rand.h>
+#ifndef TLS_client_method
+#ifdef TLSv1_2_client_method
+#define TLS_client_method TLSv1_2_client_method
+#elif defined(TLSv1_1_client_method)
+#define TLS_client_method TLSv1_1_client_method
+#else
+#define TLS_client_method TLSv1_client_method
+#endif /* TLSv1_2_client_method */
+#endif /* TLS_client_method */
#ifdef OPENSSL_1_1_0
#include <rsa.h>
#include <bn.h>