aboutsummaryrefslogtreecommitdiff
path: root/www/apt-cacher-ng/files/patch-source_tcpconnect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/apt-cacher-ng/files/patch-source_tcpconnect.cc')
-rw-r--r--www/apt-cacher-ng/files/patch-source_tcpconnect.cc14
1 files changed, 12 insertions, 2 deletions
diff --git a/www/apt-cacher-ng/files/patch-source_tcpconnect.cc b/www/apt-cacher-ng/files/patch-source_tcpconnect.cc
index e10141f199a3..a45065470499 100644
--- a/www/apt-cacher-ng/files/patch-source_tcpconnect.cc
+++ b/www/apt-cacher-ng/files/patch-source_tcpconnect.cc
@@ -1,6 +1,6 @@
---- source/tcpconnect.cc.orig 2018-09-07 13:02:18 UTC
+--- source/tcpconnect.cc.orig 2020-02-03 18:54:57 UTC
+++ source/tcpconnect.cc
-@@ -41,13 +41,13 @@ atomic_int nConCount(0), nDisconCount(0)
+@@ -41,13 +41,13 @@ atomic_int nConCount(0), nDisconCount(0), nReuseCount(
#include <openssl/crypto.h>
#include <openssl/x509_vfy.h>
#include <openssl/x509v3.h>
@@ -15,3 +15,13 @@
namespace acng
{
+@@ -626,7 +626,9 @@ void globalSslInit()
+ return;
+ inited = true;
+ SSL_load_error_strings();
++#if OPENSSL_VERSION_NUMBER < 0x30000000L
+ ERR_load_BIO_strings();
++#endif
+ ERR_load_crypto_strings();
+ ERR_load_SSL_strings();
+ OpenSSL_add_all_algorithms();