Ticket #61005: patch-lftp-libressl.diff

File patch-lftp-libressl.diff, 1011 bytes (added by bK4gYuRo, 4 years ago)

corrected patch-lftp-libressl.diff

  • src/lftp_ssl.cc

    old new  
    3434#include "misc.h"
    3535#include "network.h"
    3636#include "buffer.h"
    37 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     37#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
    3838#define X509_STORE_CTX_get_by_subject X509_STORE_get_by_subject
    3939#endif
    4040extern "C" {
    lftp_ssl_openssl_instance::lftp_ssl_openssl_instance() 
    840840   ssl_ctx=SSL_CTX_new();
    841841   X509_set_default_verify_paths(ssl_ctx->cert);
    842842#else
    843 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     843#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
    844844   SSLeay_add_ssl_algorithms();
    845845#endif
    846846   ssl_ctx=SSL_CTX_new(SSLv23_client_method());
    void lftp_ssl_openssl::copy_sid(const lftp_ssl_openssl 
    10801080
    10811081const char *lftp_ssl_openssl::strerror()
    10821082{
    1083 #if OPENSSL_VERSION_NUMBER < 0x10100000L
     1083#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
    10841084   SSL_load_error_strings();
    10851085#endif
    10861086   int error=ERR_get_error();