aboutsummaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorGanael LAPLANCHE <martymac@FreeBSD.org>2020-08-21 05:42:16 +0000
committerGanael LAPLANCHE <martymac@FreeBSD.org>2020-08-21 05:42:16 +0000
commit775e0f285e9b12d4dece2b49b5eea91b769b91a3 (patch)
tree80545770bbec9e8095b86b1fdaae195f2166baf5 /ftp
parent33739f6cf0f6552f0ce6e836b066e593b2bb8048 (diff)
downloadports-775e0f285e9b12d4dece2b49b5eea91b769b91a3.tar.gz
ports-775e0f285e9b12d4dece2b49b5eea91b769b91a3.zip
Notes
Diffstat (limited to 'ftp')
-rw-r--r--ftp/lftp/files/patch-src_lftp__ssl.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/ftp/lftp/files/patch-src_lftp__ssl.cc b/ftp/lftp/files/patch-src_lftp__ssl.cc
new file mode 100644
index 000000000000..03a2b75a31c8
--- /dev/null
+++ b/ftp/lftp/files/patch-src_lftp__ssl.cc
@@ -0,0 +1,29 @@
+--- src/lftp_ssl.cc.orig 2020-01-29 20:36:37 UTC
++++ src/lftp_ssl.cc
+@@ -34,7 +34,7 @@
+ #include "misc.h"
+ #include "network.h"
+ #include "buffer.h"
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
+ #define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject
+ #endif
+ extern "C" {
+@@ -840,7 +840,7 @@ lftp_ssl_openssl_instance::lftp_ssl_openssl_instance()
+ ssl_ctx=SSL_CTX_new();
+ X509_set_default_verify_paths(ssl_ctx->cert);
+ #else
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
+ SSLeay_add_ssl_algorithms();
+ #endif
+ ssl_ctx=SSL_CTX_new(SSLv23_client_method());
+@@ -1080,7 +1080,7 @@ void lftp_ssl_openssl::copy_sid(const lftp_ssl_openssl
+
+ const char *lftp_ssl_openssl::strerror()
+ {
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
+ SSL_load_error_strings();
+ #endif
+ int error=ERR_get_error();