1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-21 14:00:51 +03:00

Fix for building against libreSSL #302

Changed to use the check we use elsewhere.
This commit is contained in:
Will Cosgrove
2019-02-26 14:48:54 -08:00
committed by GitHub
parent ca06fe21c9
commit 3c1ff8a0b7

View File

@@ -638,7 +638,8 @@ static EVP_CIPHER * aes_256_ctr_cipher = NULL;
void _libssh2_openssl_crypto_init(void)
{
#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBSSH2_LIBRESSL))
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
!defined(LIBRESSL_VERSION_NUMBER)
#ifndef OPENSSL_NO_ENGINE
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();