From: Bernard Spil Date: Sun, 1 Apr 2018 20:39:09 +0000 (+0200) Subject: Fix build with LibreSSL 2.7 X-Git-Tag: 2.94~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=06a1644e298afc948945e44b463348944988be03;p=transmission Fix build with LibreSSL 2.7 LibreSSL 2.7 adds OpenSSL 1.1 API See also: https://bugs.freebsd.org/226953 Signed-off-by: Bernard Spil --- diff --git a/libtransmission/crypto-utils-openssl.c b/libtransmission/crypto-utils-openssl.c index f5933a4c0..b34af117c 100644 --- a/libtransmission/crypto-utils-openssl.c +++ b/libtransmission/crypto-utils-openssl.c @@ -50,7 +50,7 @@ log_openssl_error (const char * file, static bool strings_loaded = false; if (!strings_loaded) { -#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000) ERR_load_crypto_strings (); #else OPENSSL_init_crypto (OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL); @@ -236,7 +236,7 @@ tr_rc4_process (tr_rc4_ctx_t handle, **** ***/ -#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER) +#if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined (LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000) static inline int DH_set0_pqg (DH * dh,