Merge pull request #284 from haasn/libressl

LibreSSL compatibility
This commit is contained in:
Mike Gelfand 2017-05-20 12:29:29 +03:00 committed by GitHub
commit 0a6c016734
1 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ static void log_openssl_error(char const* file, int line)
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);
@ -238,7 +238,7 @@ void tr_rc4_process(tr_rc4_ctx_t handle, void const* input, void* output, size_t
****
***/
#if OPENSSL_VERSION_NUMBER < 0x10100000
#if OPENSSL_VERSION_NUMBER < 0x10100000 || defined(LIBRESSL_VERSION_NUMBER)
static inline int DH_set0_pqg(DH* dh, BIGNUM* p, BIGNUM* q, BIGNUM* g)
{