From d566a9e20e2712617661b9fb00689534ec3be7f4 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Sun, 30 Sep 2018 11:57:40 -0600 Subject: * Define TLS_client_version to be the highest TLSv1*_client_method that is available in case that this is not defined by OpenSSL. --- imap/src/osdep/nt/ssl_nt.c | 9 +++++++++ imap/src/osdep/unix/ssl_unix.c | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'imap') 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 #include #include +#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 #include 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 #include #include +#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 #include -- cgit v1.2.3-70-g09d2