From 7d52390f58ea400ac98e481f6650cfc5eb20d859 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Thu, 20 Apr 2017 07:42:38 +0000 Subject: Don't load gost algo when compiled against libressl. PR: 218727 Submitted by: xmj --- security/opensc/files/patch-src_pkcs11_openssl.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 security/opensc/files/patch-src_pkcs11_openssl.c (limited to 'security/opensc') diff --git a/security/opensc/files/patch-src_pkcs11_openssl.c b/security/opensc/files/patch-src_pkcs11_openssl.c new file mode 100644 index 000000000000..6af255f8d054 --- /dev/null +++ b/security/opensc/files/patch-src_pkcs11_openssl.c @@ -0,0 +1,11 @@ +--- src/pkcs11/openssl.c.orig 2017-04-20 09:37:43.416459000 +0200 ++++ src/pkcs11/openssl.c 2017-04-20 09:38:01.864084000 +0200 +@@ -180,7 +180,7 @@ + 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 -- cgit v1.2.3