diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2017-10-07 10:42:02 +0300 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2017-10-07 11:21:43 +0300 |
commit | 58657a205b43d9e5b6b50146bd881e6682563ca1 (patch) | |
tree | 5cda5841c5245406803abd0171da1812a5c10768 /dev-libs/softhsm | |
parent | dev-libs/crypto++: cleanup (diff) | |
download | gentoo-58657a205b43d9e5b6b50146bd881e6682563ca1.tar.gz gentoo-58657a205b43d9e5b6b50146bd881e6682563ca1.tar.bz2 gentoo-58657a205b43d9e5b6b50146bd881e6682563ca1.zip |
dev-libs/softhsm: cleanup
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-libs/softhsm')
-rw-r--r-- | dev-libs/softhsm/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/softhsm/files/softhsm-2.2.0-build.patch | 251 | ||||
-rw-r--r-- | dev-libs/softhsm/files/softhsm-2.2.0-libressl.patch | 203 | ||||
-rw-r--r-- | dev-libs/softhsm/softhsm-2.2.0-r3.ebuild | 54 |
4 files changed, 0 insertions, 509 deletions
diff --git a/dev-libs/softhsm/Manifest b/dev-libs/softhsm/Manifest index 2748890b6bab..45dc5ca6ea37 100644 --- a/dev-libs/softhsm/Manifest +++ b/dev-libs/softhsm/Manifest @@ -1,2 +1 @@ -DIST softhsm-2.2.0.tar.gz 966806 SHA256 eb6928ae08da44fca4135d84d6b79ad7345f408193208c54bf69f5b2e71f85f7 SHA512 6ef17deef491f7298244a3d2ddefe25843fc17534c4e5f2e08927f05cafdaf05601beb953539fce5d34fa02fe355cbd4ab3aaabb6e5a106936b04c06aae9793c WHIRLPOOL 9e2ead19b2091fc46c6cdf63d2aaa26ad21dfe7d69d047ea85b38d725576885c8a1c6656cbec9d79e480158a9b8f9a90d36cf3fad0a80af317b883ee59ffba06 DIST softhsm-2.3.0.tar.gz 992417 SHA256 5ed604c89a3a6ef9d7d1ee92c28a2c4b3cd1f86f302c808e2d12c8f39aa2c127 SHA512 ef9ee41aa6eaeeb004d4ff5c78ca6e00895cc47e36551025a4422806eee8eead985cfd28476a867761a810f6957b0759edaac769bcdedf4ad974e426cfefce0f WHIRLPOOL adf718c757f2f1ab3bdc8dade04790e89fd5ef1e51d957b3506b8a89a61ef19cb5225805ed7a8e5c8073298f19e60a59b140339cc3693121cb21fbd15a670794 diff --git a/dev-libs/softhsm/files/softhsm-2.2.0-build.patch b/dev-libs/softhsm/files/softhsm-2.2.0-build.patch deleted file mode 100644 index 83b6548371ea..000000000000 --- a/dev-libs/softhsm/files/softhsm-2.2.0-build.patch +++ /dev/null @@ -1,251 +0,0 @@ -From ae2fea013237e227ab62b52f9855a8f9dd8dcdbb Mon Sep 17 00:00:00 2001 -From: Alon Bar-Lev <alon.barlev@gmail.com> -Date: Fri, 27 Jan 2017 14:18:19 +0200 -Subject: [PATCH 1/2] build: add missing log dependency to test - -Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> ---- - src/lib/test/Makefile.am | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/lib/test/Makefile.am b/src/lib/test/Makefile.am -index 339593e..4555ff2 100644 ---- a/src/lib/test/Makefile.am -+++ b/src/lib/test/Makefile.am -@@ -25,6 +25,7 @@ p11test_SOURCES = p11test.cpp \ - AsymWrapUnwrapTests.cpp \ - TestsBase.cpp \ - TestsNoPINInitBase.cpp \ -+ ../common/log.cpp \ - ../common/osmutex.cpp - - p11test_LDADD = ../libsofthsm2.la --- -2.10.2 - -From c90ba51dd944c9e842e4743cf8dd9d5f4ea7bc5d Mon Sep 17 00:00:00 2001 -From: Alon Bar-Lev <alon.barlev@gmail.com> -Date: Fri, 27 Jan 2017 14:41:11 +0200 -Subject: [PATCH 2/2] build: tests: use pkg-config for cppunit - -do not execute cppunit-config over and over. -move detection to autoconf. -use standard pkg-config module of pkg-config instead -of cppunit-config. - -Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> ---- - configure.ac | 3 +++ - m4/acx_cppunit.m4 | 4 ++++ - src/lib/crypto/test/Makefile.am | 7 ++++--- - src/lib/data_mgr/test/Makefile.am | 7 ++++--- - src/lib/handle_mgr/test/Makefile.am | 7 ++++--- - src/lib/object_store/test/Makefile.am | 7 ++++--- - src/lib/session_mgr/test/Makefile.am | 7 ++++--- - src/lib/slot_mgr/test/Makefile.am | 7 ++++--- - src/lib/test/Makefile.am | 7 ++++--- - 9 files changed, 35 insertions(+), 21 deletions(-) - create mode 100644 m4/acx_cppunit.m4 - -diff --git a/configure.ac b/configure.ac -index 4ecabd6..7df0f73 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -117,6 +117,9 @@ ACX_VISIBILITY - # If we should install the p11-kit module - ACX_P11KIT - -+# cppunit setetings -+ACX_CPPUNIT -+ - # Set full directory paths - full_sysconfdir=`eval eval eval eval eval echo "${sysconfdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` - full_localstatedir=`eval eval eval eval eval echo "${localstatedir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"` -diff --git a/m4/acx_cppunit.m4 b/m4/acx_cppunit.m4 -new file mode 100644 -index 0000000..ff5b90e ---- /dev/null -+++ b/m4/acx_cppunit.m4 -@@ -0,0 +1,4 @@ -+AC_DEFUN([ACX_CPPUNIT],[ -+ PKG_PROG_PKG_CONFIG -+ PKG_CHECK_MODULES([CPPUNIT], [cppunit], [have_cppunit=yes], [have_cppunit=no]) -+]) -diff --git a/src/lib/crypto/test/Makefile.am b/src/lib/crypto/test/Makefile.am -index ca7e421..81c2ce6 100644 ---- a/src/lib/crypto/test/Makefile.am -+++ b/src/lib/crypto/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../object_store \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../slot_mgr \ -- @CRYPTO_INCLUDES@ \ -- `cppunit-config --cflags` -+ @CRYPTO_INCLUDES@ -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = cryptotest - -@@ -32,7 +33,7 @@ cryptotest_SOURCES = cryptotest.cpp \ - - cryptotest_LDADD = ../../libsofthsm_convarch.la - --cryptotest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -+cryptotest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install - - TESTS = cryptotest - -diff --git a/src/lib/data_mgr/test/Makefile.am b/src/lib/data_mgr/test/Makefile.am -index 27b4fbd..944224c 100644 ---- a/src/lib/data_mgr/test/Makefile.am -+++ b/src/lib/data_mgr/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../object_store \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../slot_mgr \ -- @CRYPTO_INCLUDES@ \ -- `cppunit-config --cflags` -+ @CRYPTO_INCLUDES@ -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = datamgrtest - -@@ -20,7 +21,7 @@ datamgrtest_SOURCES = datamgrtest.cpp \ - - datamgrtest_LDADD = ../../libsofthsm_convarch.la - --datamgrtest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -+datamgrtest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install - - TESTS = datamgrtest - -diff --git a/src/lib/handle_mgr/test/Makefile.am b/src/lib/handle_mgr/test/Makefile.am -index 4cf92e4..f439a56 100644 ---- a/src/lib/handle_mgr/test/Makefile.am -+++ b/src/lib/handle_mgr/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../object_store \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../slot_mgr \ -- -I$(srcdir)/../../data_mgr \ -- `cppunit-config --cflags` -+ -I$(srcdir)/../../data_mgr -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = handlemgrtest - -@@ -18,7 +19,7 @@ handlemgrtest_SOURCES = handlemgrtest.cpp \ - - handlemgrtest_LDADD = ../../libsofthsm_convarch.la - --handlemgrtest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -+handlemgrtest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install - - TESTS = handlemgrtest - -diff --git a/src/lib/object_store/test/Makefile.am b/src/lib/object_store/test/Makefile.am -index ab2aa82..eec4a92 100644 ---- a/src/lib/object_store/test/Makefile.am -+++ b/src/lib/object_store/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../data_mgr \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../slot_mgr \ -- @CRYPTO_INCLUDES@ \ -- `cppunit-config --cflags` -+ @CRYPTO_INCLUDES@ -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = objstoretest - -@@ -32,7 +33,7 @@ endif - - objstoretest_LDADD = ../../libsofthsm_convarch.la - --objstoretest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -pthread -+objstoretest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install -pthread - - TESTS = objstoretest - -diff --git a/src/lib/session_mgr/test/Makefile.am b/src/lib/session_mgr/test/Makefile.am -index 5e9a71c..385deec 100644 ---- a/src/lib/session_mgr/test/Makefile.am -+++ b/src/lib/session_mgr/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../data_mgr \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../slot_mgr \ -- -I$(srcdir)/../../object_store \ -- `cppunit-config --cflags` -+ -I$(srcdir)/../../object_store -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = sessionmgrtest - -@@ -18,7 +19,7 @@ sessionmgrtest_SOURCES = sessionmgrtest.cpp \ - - sessionmgrtest_LDADD = ../../libsofthsm_convarch.la - --sessionmgrtest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -pthread -+sessionmgrtest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install -pthread - - TESTS = sessionmgrtest - -diff --git a/src/lib/slot_mgr/test/Makefile.am b/src/lib/slot_mgr/test/Makefile.am -index e9b9ce2..ecf36f5 100644 ---- a/src/lib/slot_mgr/test/Makefile.am -+++ b/src/lib/slot_mgr/test/Makefile.am -@@ -8,8 +8,9 @@ AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../../object_store \ - -I$(srcdir)/../../session_mgr \ - -I$(srcdir)/../../data_mgr \ -- @CRYPTO_INCLUDES@ \ -- `cppunit-config --cflags` -+ @CRYPTO_INCLUDES@ -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = slotmgrtest - -@@ -18,7 +19,7 @@ slotmgrtest_SOURCES = slotmgrtest.cpp \ - - slotmgrtest_LDADD = ../../libsofthsm_convarch.la - --slotmgrtest_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -pthread -+slotmgrtest_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install -pthread - - TESTS = slotmgrtest - -diff --git a/src/lib/test/Makefile.am b/src/lib/test/Makefile.am -index 4555ff2..9d157a5 100644 ---- a/src/lib/test/Makefile.am -+++ b/src/lib/test/Makefile.am -@@ -2,8 +2,9 @@ MAINTAINERCLEANFILES = $(srcdir)/Makefile.in - - AM_CPPFLAGS = -I$(srcdir)/.. \ - -I$(srcdir)/../cryptoki_compat \ -- -I$(srcdir)/../common \ -- `cppunit-config --cflags` -+ -I$(srcdir)/../common -+ -+AM_CFLAGS = @CPPUNIT_CFLAGS@ - - check_PROGRAMS = p11test - -@@ -30,7 +31,7 @@ p11test_SOURCES = p11test.cpp \ - - p11test_LDADD = ../libsofthsm2.la - --p11test_LDFLAGS = @CRYPTO_LIBS@ -no-install `cppunit-config --libs` -pthread -static -+p11test_LDFLAGS = @CRYPTO_LIBS@ @CPPUNIT_LIBS@ -no-install -pthread -static - - TESTS = p11test - --- -2.10.2 - diff --git a/dev-libs/softhsm/files/softhsm-2.2.0-libressl.patch b/dev-libs/softhsm/files/softhsm-2.2.0-libressl.patch deleted file mode 100644 index c8b6237b18b8..000000000000 --- a/dev-libs/softhsm/files/softhsm-2.2.0-libressl.patch +++ /dev/null @@ -1,203 +0,0 @@ -From 13ed52e65f6f07f2c0c2aa70604298c9f983693d Mon Sep 17 00:00:00 2001 -From: Alon Bar-Lev <alon.barlev@gmail.com> -Date: Sat, 28 Jan 2017 21:09:05 +0200 -Subject: [PATCH] crypto: openssl: libressl support - -Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com> ---- - m4/acx_openssl_gost.m4 | 2 +- - src/lib/crypto/OSSLComp.cpp | 2 +- - src/lib/crypto/OSSLComp.h | 2 +- - src/lib/crypto/OSSLCryptoFactory.cpp | 2 +- - src/lib/crypto/OSSLDHPrivateKey.cpp | 2 +- - src/lib/crypto/OSSLDHPublicKey.cpp | 2 +- - src/lib/crypto/OSSLDSAPrivateKey.cpp | 2 +- - src/lib/crypto/OSSLDSAPublicKey.cpp | 2 +- - src/lib/crypto/OSSLECDH.cpp | 2 +- - src/lib/crypto/OSSLECDSA.cpp | 4 ++-- - src/lib/crypto/OSSLRSAPrivateKey.cpp | 2 +- - src/lib/crypto/OSSLRSAPublicKey.cpp | 2 +- - win32/Configure.py | 2 +- - 13 files changed, 14 insertions(+), 14 deletions(-) - -diff --git a/m4/acx_openssl_gost.m4 b/m4/acx_openssl_gost.m4 -index 2a949f2..dca489b 100644 ---- a/m4/acx_openssl_gost.m4 -+++ b/m4/acx_openssl_gost.m4 -@@ -22,7 +22,7 @@ AC_DEFUN([ACX_OPENSSL_GOST],[ - OpenSSL_add_all_algorithms(); - - /* Load engines */ -- #if OPENSSL_VERSION_NUMBER < 0x10100000L -+ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - ENGINE_load_builtin_engines(); - #else - OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_LOAD_CONFIG, NULL); -diff --git a/src/lib/crypto/OSSLComp.cpp b/src/lib/crypto/OSSLComp.cpp -index 31333f6..ede710b 100644 ---- a/src/lib/crypto/OSSLComp.cpp -+++ b/src/lib/crypto/OSSLComp.cpp -@@ -34,7 +34,7 @@ - #include "OSSLComp.h" - #include <openssl/opensslv.h> - --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - /* - * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. -diff --git a/src/lib/crypto/OSSLComp.h b/src/lib/crypto/OSSLComp.h -index 71d6c21..4bced32 100644 ---- a/src/lib/crypto/OSSLComp.h -+++ b/src/lib/crypto/OSSLComp.h -@@ -36,7 +36,7 @@ - #include "config.h" - #include <openssl/opensslv.h> - --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #include <openssl/evp.h> - #include <openssl/hmac.h> -diff --git a/src/lib/crypto/OSSLCryptoFactory.cpp b/src/lib/crypto/OSSLCryptoFactory.cpp -index cd7f9d3..41134df 100644 ---- a/src/lib/crypto/OSSLCryptoFactory.cpp -+++ b/src/lib/crypto/OSSLCryptoFactory.cpp -@@ -134,7 +134,7 @@ OSSLCryptoFactory::OSSLCryptoFactory() - - #ifdef WITH_GOST - // Load engines --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - ENGINE_load_builtin_engines(); - #else - OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | -diff --git a/src/lib/crypto/OSSLDHPrivateKey.cpp b/src/lib/crypto/OSSLDHPrivateKey.cpp -index 4c1b9c3..5571a88 100644 ---- a/src/lib/crypto/OSSLDHPrivateKey.cpp -+++ b/src/lib/crypto/OSSLDHPrivateKey.cpp -@@ -210,7 +210,7 @@ void OSSLDHPrivateKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLDHPublicKey.cpp b/src/lib/crypto/OSSLDHPublicKey.cpp -index 78820e1..e261726 100644 ---- a/src/lib/crypto/OSSLDHPublicKey.cpp -+++ b/src/lib/crypto/OSSLDHPublicKey.cpp -@@ -151,7 +151,7 @@ void OSSLDHPublicKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLDSAPrivateKey.cpp b/src/lib/crypto/OSSLDSAPrivateKey.cpp -index 2192fad..527e041 100644 ---- a/src/lib/crypto/OSSLDSAPrivateKey.cpp -+++ b/src/lib/crypto/OSSLDSAPrivateKey.cpp -@@ -227,7 +227,7 @@ void OSSLDSAPrivateKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLDSAPublicKey.cpp b/src/lib/crypto/OSSLDSAPublicKey.cpp -index 71ec3bf..38ecc79 100644 ---- a/src/lib/crypto/OSSLDSAPublicKey.cpp -+++ b/src/lib/crypto/OSSLDSAPublicKey.cpp -@@ -168,7 +168,7 @@ void OSSLDSAPublicKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLECDH.cpp b/src/lib/crypto/OSSLECDH.cpp -index 9afbf38..e2abaeb 100644 ---- a/src/lib/crypto/OSSLECDH.cpp -+++ b/src/lib/crypto/OSSLECDH.cpp -@@ -187,7 +187,7 @@ bool OSSLECDH::deriveKey(SymmetricKey **ppSymmetricKey, PublicKey* publicKey, Pr - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLECDSA.cpp b/src/lib/crypto/OSSLECDSA.cpp -index 80d2386..7387367 100644 ---- a/src/lib/crypto/OSSLECDSA.cpp -+++ b/src/lib/crypto/OSSLECDSA.cpp -@@ -78,7 +78,7 @@ bool OSSLECDSA::sign(PrivateKey* privateKey, const ByteString& dataToSign, - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -@@ -170,7 +170,7 @@ bool OSSLECDSA::verify(PublicKey* publicKey, const ByteString& originalData, - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLRSAPrivateKey.cpp b/src/lib/crypto/OSSLRSAPrivateKey.cpp -index 94ec432..26065cf 100644 ---- a/src/lib/crypto/OSSLRSAPrivateKey.cpp -+++ b/src/lib/crypto/OSSLRSAPrivateKey.cpp -@@ -289,7 +289,7 @@ void OSSLRSAPrivateKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/src/lib/crypto/OSSLRSAPublicKey.cpp b/src/lib/crypto/OSSLRSAPublicKey.cpp -index 71b1b92..2a6893b 100644 ---- a/src/lib/crypto/OSSLRSAPublicKey.cpp -+++ b/src/lib/crypto/OSSLRSAPublicKey.cpp -@@ -133,7 +133,7 @@ void OSSLRSAPublicKey::createOSSLKey() - } - - // Use the OpenSSL implementation and not any engine --#if OPENSSL_VERSION_NUMBER < 0x10100000L -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) - - #ifdef WITH_FIPS - if (FIPS_mode()) -diff --git a/win32/Configure.py b/win32/Configure.py -index 0a01e0c..2ad652d 100644 ---- a/win32/Configure.py -+++ b/win32/Configure.py -@@ -789,7 +789,7 @@ int main() {\n\ - ENGINE *eg;\n\ - const EVP_MD* EVP_GOST_34_11;\n\ - OpenSSL_add_all_algorithms();\n\ --#if OPENSSL_VERSION_NUMBER < 0x10100000L\n\ -+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)\n\ - ENGINE_load_builtin_engines();\n\ - #else\n\ - OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_LOAD_CONFIG, NULL);\n\ --- -2.10.2 - diff --git a/dev-libs/softhsm/softhsm-2.2.0-r3.ebuild b/dev-libs/softhsm/softhsm-2.2.0-r3.ebuild deleted file mode 100644 index 653177b975f3..000000000000 --- a/dev-libs/softhsm/softhsm-2.2.0-r3.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools ltprune - -DESCRIPTION="A software PKCS#11 implementation" -HOMEPAGE="http://www.opendnssec.org/" -SRC_URI="http://www.opendnssec.org/files/source/${P}.tar.gz" - -KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="bindist libressl migration-tool test" -SLOT="2" -LICENSE="BSD" - -RDEPEND=" - sys-devel/gcc:=[cxx] - migration-tool? ( dev-db/sqlite:3 ) - !libressl? ( dev-libs/openssl:=[bindist=] ) - libressl? ( dev-libs/libressl ) - !=dev-libs/softhsm-2.0.0:0 -" -DEPEND="${RDEPEND} - virtual/pkgconfig - test? ( dev-util/cppunit ) -" - -PATCHES=( - "${FILESDIR}/${P}-build.patch" - "${FILESDIR}/${P}-libressl.patch" -) -DOCS=( NEWS README.md ) - -src_prepare() { - default - eautoreconf -} - -src_configure() { - econf \ - --disable-static \ - --localstatedir="${EROOT}var" \ - --with-crypto-backend=openssl \ - --disable-p11-kit \ - $(use_enable !bindist ecc) \ - $(use_enable !libressl gost) \ - $(use_with migration-tool migrate) -} - -src_install() { - default - prune_libtool_files --modules -} |