View | Details | Raw Unified | Return to bug 233777 | Differences between
and this patch

Collapse All | Expand All

(-)security/softhsm2/Makefile (-1 / +1 lines)
Lines 48-54 Link Here
48
CRYP_BOTAN_CONFIGURE_ON=	--with-crypto-backend=botan
48
CRYP_BOTAN_CONFIGURE_ON=	--with-crypto-backend=botan
49
CRYP_BOTAN_LIB_DEPENDS=	libbotan-1.10.so:security/botan110
49
CRYP_BOTAN_LIB_DEPENDS=	libbotan-1.10.so:security/botan110
50
50
51
CRYP_OPEN_CONFIGURE_ON=	--with-crypto-backend=openssl
51
CRYP_OPEN_CONFIGURE_ON=	--with-crypto-backend=openssl --with-openssl=${OPENSSLBASE}
52
52
53
.include <bsd.port.options.mk>
53
.include <bsd.port.options.mk>
54
54
(-)security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp (+13 lines)
Line 0 Link Here
1
--- src/lib/crypto/OSSLCryptoFactory.cpp.orig	2018-12-04 15:21:48 UTC
2
+++ src/lib/crypto/OSSLCryptoFactory.cpp
3
@@ -141,8 +141,10 @@ OSSLCryptoFactory::OSSLCryptoFactory()
4
 	// Initialise OpenSSL
5
 	OpenSSL_add_all_algorithms();
6
 
7
+#if !( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) )
8
 	// Make sure RDRAND is loaded first
9
 	ENGINE_load_rdrand();
10
+#endif
11
 	// Locate the engine
12
 	rdrand_engine = ENGINE_by_id("rdrand");
13
 	// Use RDRAND if available

Return to bug 233777