Ticket #61005: patch-lftp-libressl.diff
File patch-lftp-libressl.diff, 1011 bytes (added by bK4gYuRo, 4 years ago) |
---|
-
src/lftp_ssl.cc
old new 34 34 #include "misc.h" 35 35 #include "network.h" 36 36 #include "buffer.h" 37 #if OPENSSL_VERSION_NUMBER < 0x10100000L 37 #if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER 38 38 #define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject 39 39 #endif 40 40 extern "C" { … … lftp_ssl_openssl_instance::lftp_ssl_openssl_instance() 840 840 ssl_ctx=SSL_CTX_new(); 841 841 X509_set_default_verify_paths(ssl_ctx->cert); 842 842 #else 843 #if OPENSSL_VERSION_NUMBER < 0x10100000L 843 #if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER 844 844 SSLeay_add_ssl_algorithms(); 845 845 #endif 846 846 ssl_ctx=SSL_CTX_new(SSLv23_client_method()); … … void lftp_ssl_openssl::copy_sid(const lftp_ssl_openssl 1080 1080 1081 1081 const char *lftp_ssl_openssl::strerror() 1082 1082 { 1083 #if OPENSSL_VERSION_NUMBER < 0x10100000L 1083 #if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER 1084 1084 SSL_load_error_strings(); 1085 1085 #endif 1086 1086 int error=ERR_get_error();