void-packages/srcpkgs/lftp/patches/libressl.patch
2017-07-12 14:01:32 +02:00

11 lines
369 B
Diff

--- 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 || defined(LIBRESSL_VERSION_NUMBER)
// for compatibility with older versions
X509_OBJECT *X509_OBJECT_new()
{