Skip to contentSkip to conversation

imap-send: Fix compilation without deprecated OpenSSL APIs

PATCH New Rosen Penev 1 participant 1 message Dec 27, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 imap-send: Fix compilation without deprecated OpenSSL APIs

Initialization in OpenSSL has been deprecated in version 1.1. This makes compilation fail when deprecated APIs for OpenSSL are compile-time disabled.

---
 imap-send.c | 2 ++
 1 file changed, 2 insertions(+)
imap-send.c +2 -0
index b4eb886e2..877a4e368 100644
@@ -284,8 +284,10 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve
 	int ret;
 	X509 *cert;
 
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
 	SSL_library_init();
 	SSL_load_error_strings();
+#endif
 
 	meth = SSLv23_method();
 	if (!meth) {
Signature · 1 line
2.20.1