aboutsummaryrefslogtreecommitdiffstats
path: root/community/opensc/libressl.patch
blob: 003328e000f503b46a544dee3997528a85644ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://raw.githubusercontent.com/voidlinux/void-packages/4b22d402a290a6192853dd3994e24128023a3b7e/srcpkgs/opensc/patches/libressl.patch

--- a/src/pkcs11/openssl.c.orig	2016-06-05 18:51:11.947157265 +0200
+++ b/src/pkcs11/openssl.c	2016-06-05 18:55:21.067170117 +0200
@@ -180,7 +180,7 @@
 	e = ENGINE_by_id("gost");
 	if (!e)
 	{
-#if !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST)
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST)
 		ENGINE_load_gost();
 		e = ENGINE_by_id("gost");
 #else
@@ -195,7 +195,7 @@
 			ENGINE_free(e);
 			e = NULL;
 		}
-#endif /* !OPENSSL_NO_STATIC_ENGINE && !OPENSSL_NO_GOST */
+#endif /* !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST) */
 	}
 	if (e) {
 		ENGINE_set_default(e, ENGINE_METHOD_ALL);