openssl: allow building against libressl (#878)

This commit is contained in:
Leonardo Brondani Schenkel 2016-09-26 14:54:58 +02:00 committed by Frank Morgner
parent 96ef5c0dc2
commit 7b9bd60030

View File

@ -180,7 +180,7 @@ sc_pkcs11_register_openssl_mechanisms(struct sc_pkcs11_card *p11card)
e = ENGINE_by_id("gost");
if (!e)
{
#if !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST)
#if !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST) && !defined(LIBRESSL_VERSION_NUMBER)
ENGINE_load_gost();
e = ENGINE_by_id("gost");
#else