packages/net/git/patches/300-openssl-deprecated.patch
Michal Vasilek c6eb1c025c git: update to 2.39.2
GITWEB_* variable values don't work as they should since 2.38, so let's
remove them and add a workaround. This issue was reported in
https://lore.kernel.org/git/80eb3972-4960-5727-ce86-acc3a4425fd4@nic.cz/T/#u

* refresh patches

Signed-off-by: Michal Vasilek <michal.vasilek@nic.cz>
2023-03-16 13:34:35 -07:00

27 lines
748 B
Diff

From fa37195d8378ac958d1f9bd884b47bd73730040e Mon Sep 17 00:00:00 2001
From: Rosen Penev <rosenp@gmail.com>
Date: Thu, 27 Dec 2018 09:58:07 -0800
Subject: [PATCH] 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.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
imap-send.c | 2 ++
1 file changed, 2 insertions(+)
--- a/imap-send.c
+++ b/imap-send.c
@@ -274,8 +274,10 @@ static int ssl_socket_connect(struct ima
int ret;
X509 *cert;
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
SSL_library_init();
SSL_load_error_strings();
+#endif
meth = SSLv23_method();
if (!meth) {