From 30507e11007fbacb942016b0a1167104ad2c7d49 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 7 Jan 2018 20:51:53 -0700 Subject: * Redefine TLSv1_1_client_method and TLSv1_2_client_method to TLS_client_methodto when compiling Alpine with OpenSSL 1.1. --- imap/src/osdep/unix/ssl_unix.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'imap/src/osdep/unix/ssl_unix.c') diff --git a/imap/src/osdep/unix/ssl_unix.c b/imap/src/osdep/unix/ssl_unix.c index 9498eb0e..4c4d6ef8 100644 --- a/imap/src/osdep/unix/ssl_unix.c +++ b/imap/src/osdep/unix/ssl_unix.c @@ -36,6 +36,14 @@ #ifdef OPENSSL_1_1_0 #include #include +#ifdef TLSv1_1_client_method +#undef TLSv1_1_client_method +#endif /* TLSv1_1_client_method */ +#ifdef TLSv1_2_client_method +#undef TLSv1_2_client_method +#endif /* TLSv1_2_client_method */ +#define TLSv1_1_client_method TLS_client_method +#define TLSv1_2_client_method TLS_client_method #endif /* OPENSSL_1_1_0 */ #undef STRING #undef crypt -- cgit v1.2.3-54-g00ecf