Hello,

Fedora Rawhide now is shipped with OpenSSL-3.0.0 :)
let us fix deprecations one by one.


thanks,
Ilya
From 1d437e57e43e9c2f38977c373404e167f8230a08 Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Mon, 20 Sep 2021 22:27:35 +0500
Subject: [PATCH] BUILD: SSL: function "ERR_func_error_string" is deprecated in
 OpenSSL-3.0.0

let us prepare for using OpenSSL-3.0.0 in no deprecation mode
---
 src/ssl_sock.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/ssl_sock.c b/src/ssl_sock.c
index a87d70b89..79b8b53ca 100644
--- a/src/ssl_sock.c
+++ b/src/ssl_sock.c
@@ -606,7 +606,12 @@ static forceinline void ssl_sock_dump_errors(struct 
connection *conn)
                                return;
                        fprintf(stderr, "fd[%#x] OpenSSL error[0x%lx] %s: %s\n",
                                conn->handle.fd, ret,
-                               ERR_func_error_string(ret), 
ERR_reason_error_string(ret));
+#if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
+                               "OPENSSL_internal",
+#else
+                               ERR_func_error_string(ret),
+#endif
+                               ERR_reason_error_string(ret));
                }
        }
 }
-- 
2.29.2.windows.2

Reply via email to