|
Added
Link Here
|
| 1 |
--- src/pkcs11/openssl.c.orig 2017-04-18 12:36:02 UTC |
| 2 |
+++ src/pkcs11/openssl.c |
| 3 |
@@ -180,7 +180,7 @@ sc_pkcs11_register_openssl_mechanisms(st |
| 4 |
e = ENGINE_by_id("gost"); |
| 5 |
if (!e) |
| 6 |
{ |
| 7 |
-#if !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST) |
| 8 |
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(OPENSSL_NO_STATIC_ENGINE) && !defined(OPENSSL_NO_GOST) |
| 9 |
ENGINE_load_gost(); |
| 10 |
e = ENGINE_by_id("gost"); |
| 11 |
#else |
| 12 |
@@ -195,7 +195,7 @@ sc_pkcs11_register_openssl_mechanisms(st |
| 13 |
ENGINE_free(e); |
| 14 |
e = NULL; |
| 15 |
} |
| 16 |
-#endif /* !OPENSSL_NO_STATIC_ENGINE && !OPENSSL_NO_GOST */ |
| 17 |
+#endif /* !LIBRESSL_VERSION_NUMBER && !OPENSSL_NO_STATIC_ENGINE && !OPENSSL_NO_GOST */ |
| 18 |
} |
| 19 |
if (e) { |
| 20 |
ENGINE_set_default(e, ENGINE_METHOD_ALL); |