View | Details | Raw Unified | Return to bug 248716
Collapse All | Expand All

(-)ftp/lftp/files/patch-src_lftp__ssl.cc (+29 lines)
Line 0 Link Here
1
--- src/lftp_ssl.cc.orig	2020-01-29 20:36:37 UTC
2
+++ src/lftp_ssl.cc
3
@@ -34,7 +34,7 @@
4
 #include "misc.h"
5
 #include "network.h"
6
 #include "buffer.h"
7
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
8
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
9
 #define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject
10
 #endif
11
 extern "C" {
12
@@ -840,7 +840,7 @@ lftp_ssl_openssl_instance::lftp_ssl_openssl_instance()
13
    ssl_ctx=SSL_CTX_new();
14
    X509_set_default_verify_paths(ssl_ctx->cert);
15
 #else
16
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
17
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
18
    SSLeay_add_ssl_algorithms();
19
 #endif
20
    ssl_ctx=SSL_CTX_new(SSLv23_client_method());
21
@@ -1080,7 +1080,7 @@ void lftp_ssl_openssl::copy_sid(const lftp_ssl_openssl
22
 
23
 const char *lftp_ssl_openssl::strerror()
24
 {
25
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
26
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
27
    SSL_load_error_strings();
28
 #endif
29
    int error=ERR_get_error();

Return to bug 248716