aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2017-07-12 19:11:47 +0800
committermartymac <martymac@FreeBSD.org>2017-07-12 19:11:47 +0800
commit01c47482e54d0b66a676cd729d5081134b5cbd11 (patch)
tree925dd407aa34fd0c6f9d8c394b4457edbfb3ad7c /ftp
parent5efce85c7a19c21aa8c8f36f9ddb1883909d013f (diff)
downloadfreebsd-ports-gnome-01c47482e54d0b66a676cd729d5081134b5cbd11.tar.gz
freebsd-ports-gnome-01c47482e54d0b66a676cd729d5081134b5cbd11.tar.zst
freebsd-ports-gnome-01c47482e54d0b66a676cd729d5081134b5cbd11.zip
Fix build with LibreSSL
Reported by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/lftp/files/patch-src-lftp_ssl.cc13
1 files changed, 13 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..c52a9faebf58
--- /dev/null
+++ b/ftp/lftp/files/patch-src-lftp_ssl.cc
@@ -0,0 +1,13 @@
+Fix build with LibreSSL
+
+--- src/lftp_ssl.cc.orig
++++ src/lftp_ssl.cc
+@@ -772,7 +772,7 @@
+ #elif USE_OPENSSL
+ //static int lftp_ssl_passwd_callback(char *buf,int size,int rwflag,void *userdata);
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
+ // for compatibility with older versions
+ X509_OBJECT *X509_OBJECT_new()
+ {