Fix build with LibreSSL

Reported by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
This commit is contained in:
Ganael LAPLANCHE 2017-07-12 11:11:47 +00:00
parent 8793d9a30d
commit 9cf9135d8d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445583

View File

@ -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()
{