Fix build with LibreSSL
Reported by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
This commit is contained in:
parent
8793d9a30d
commit
9cf9135d8d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445583
13
ftp/lftp/files/patch-src-lftp_ssl.cc
Normal file
13
ftp/lftp/files/patch-src-lftp_ssl.cc
Normal 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()
|
||||
{
|
Loading…
Reference in New Issue
Block a user