From 11d29ff62d528319f9b9596fd746dd7795aff140 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 20 May 2017 07:16:53 +0200 Subject: [PATCH] LibreSSL compatibility This seems to be the idiomatic way to fix libressl compatibility issues, judging by what most other open source projects seem to be doing. I've confirmed that transmission builds with libressl for me after this patch is applied. --- libtransmission/crypto-utils-openssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/crypto-utils-openssl.c b/libtransmission/crypto-utils-openssl.c index 38e1ccc54..f5933a4c0 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 +#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER) 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 +#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined (LIBRESSL_VERSION_NUMBER) static inline int DH_set0_pqg (DH * dh,