1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 18:18:10 +00:00

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.
This commit is contained in:
Niklas Haas 2017-05-20 07:16:53 +02:00 committed by Mike Gelfand
parent 9d96f87ec3
commit 11d29ff62d

View file

@ -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,