summaryrefslogtreecommitdiff
path: root/imap/src/osdep/unix/ssl_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'imap/src/osdep/unix/ssl_unix.c')
-rw-r--r--imap/src/osdep/unix/ssl_unix.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c
index ffd37775..efbe8392 100644
--- a/imap/src/osdep/unix/ssl_unix.c
+++ b/imap/src/osdep/unix/ssl_unix.c
@@ -33,6 +33,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>