25 lines
904 B
Diff
25 lines
904 B
Diff
From 25ca37e4fbf5bab7cab60ad552a448f885daedef Mon Sep 17 00:00:00 2001
|
|
Date: Fri, 2 Nov 2018 17:19:13 +0300
|
|
Subject: [PATCH] Added additional check for build with libressl v.<2.7
|
|
|
|
---
|
|
src/tools/sc-hsm-tool.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/tools/sc-hsm-tool.c b/src/tools/sc-hsm-tool.c
|
|
index 9c1d7c1..1f794c7 100644
|
|
--- a/src/tools/sc-hsm-tool.c
|
|
+++ b/src/tools/sc-hsm-tool.c
|
|
@@ -1761,7 +1761,7 @@ int main(int argc, char *argv[])
|
|
}
|
|
}
|
|
|
|
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L)
|
|
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L)
|
|
OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CRYPTO_STRINGS
|
|
| OPENSSL_INIT_ADD_ALL_CIPHERS
|
|
| OPENSSL_INIT_ADD_ALL_DIGESTS,
|
|
--
|
|
2.16.4
|
|
|