git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] imap-send: Fix compilation without deprecated OpenSSL APIs

From
Rosen Penev <rosenp@gmail.com>
Date
Dec 27, 2018, 02:35 UTC
Message-ID
<20181227023548.396-1-rosenp@gmail.com>

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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
 imap-send.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/imap-send.c b/imap-send.c
index b4eb886e2..21f741c8c 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -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 < 0x10000000L)
 	SSL_library_init();
 	SSL_load_error_strings();
+#endif
 
 	meth = SSLv23_method();
 	if (!meth) {
-- 
2.20.1
Next: Junio C Hamano
Message 1 of 4 in “imap-send: Fix compilation without deprecated OpenSSL APIs”
  1. imap-send: Fix compilation without deprecated OpenSSL APIsRosen Penev, Dec 27, 2018
  2. Junio C HamanoDec 27, 2018
  3. Rosen PenevDec 27, 2018
  4. Junio C HamanoDec 28, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.