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

[PATCH] imap-send.c: Avoid deprecated openssl 1.1.0 API

From
Eeroen <git-scm@occam.eroen.eu>
Date
Jan 12, 2017, 10:42 UTC
Message-ID
<20170112104219.563497-1-git-scm@occam.eroen.eu>

Library initialization functions are deprecated in openssl 1.1.0 API, as initialization is handled by openssl internally.

Symbols for deprecated functions are not exported if openssl is built with `--api=1.1 disable-deprecated`, so their use will cause a build failure.

Reported-by: Lars Wendler (Polynomial-C)
X-Gentoo-Bug: 592466
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=592466
---
 imap-send.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/imap-send.c b/imap-send.c
index 5c7e27a89..98774360e 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 < 0x10100000L
 	SSL_library_init();
 	SSL_load_error_strings();
+#endif
 
 	meth = SSLv23_method();
 	if (!meth) {
-- 
2.11.0
Next: Jack Bates
Message 1 of 3 in “imap-send.c: Avoid deprecated openssl 1.1.0 API”
  1. imap-send.c: Avoid deprecated openssl 1.1.0 APIeroen, Jan 12, 2017
  2. Jack BatesJan 12, 2017
  3. Jack BatesJan 12, 2017

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.