diff --git a/src/lftp_ssl.cc b/src/lftp_ssl.cc index 7da28a06..46344bcf 100644 --- a/src/lftp_ssl.cc +++ b/src/lftp_ssl.cc @@ -772,7 +772,7 @@ error: #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() { -- 2.13.3