{"thread":{"id":"50117","subject":"[PATCHv2] imap-send: Fix compilation without deprecated OpenSSL APIs","startedAt":"2018-12-27T18:00:29Z","lastAt":"2018-12-27T18:00:29Z","messageCount":1,"participants":["Rosen Penev"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"365874","messageId":"20181227180024.2684-1-rosenp@gmail.com","threadId":"50117","inReplyTo":null,"subject":"[PATCHv2] imap-send: Fix compilation without deprecated OpenSSL APIs","fromName":"Rosen Penev","fromEmail":"rosenp@gmail.com","sentAt":"2018-12-27T18:00:24Z","receivedAt":"2018-12-27T18:00:29Z","isPatch":false,"sender":{"key":"rosenp@gmail.com","avatar":"https://gravatar.com/avatar/33a030031a58410cc9dd6b414805d443c63099a64cbe92fd432cfee8e8db9755?d=mp&s=160"},"body":"Initialization in OpenSSL has been deprecated in version 1.1. This makes\ncompilation fail when deprecated APIs for OpenSSL are compile-time\ndisabled.\n\nSigned-off-by: Rosen Penev <rosenp@gmail.com>\n---\n imap-send.c | 2 ++\n 1 file changed, 2 insertions(+)\n\ndiff --git a/imap-send.c b/imap-send.c\nindex b4eb886e2..877a4e368 100644\n--- a/imap-send.c\n+++ b/imap-send.c\n@@ -284,8 +284,10 @@ static int ssl_socket_connect(struct imap_socket *sock, int use_tls_only, int ve\n \tint ret;\n \tX509 *cert;\n \n+#if (OPENSSL_VERSION_NUMBER < 0x10100000L)\n \tSSL_library_init();\n \tSSL_load_error_strings();\n+#endif\n \n \tmeth = SSLv23_method();\n \tif (!meth) {\n-- \n2.20.1\n\n"}]}