Index: security/softhsm2/Makefile =================================================================== --- security/softhsm2/Makefile (revision 486610) +++ security/softhsm2/Makefile (working copy) @@ -48,7 +48,7 @@ CRYP_BOTAN_CONFIGURE_ON= --with-crypto-backend=botan CRYP_BOTAN_LIB_DEPENDS= libbotan-1.10.so:security/botan110 -CRYP_OPEN_CONFIGURE_ON= --with-crypto-backend=openssl +CRYP_OPEN_CONFIGURE_ON= --with-crypto-backend=openssl --with-openssl=${OPENSSLBASE} .include Index: security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp =================================================================== --- security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp (nonexistent) +++ security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp (working copy) @@ -0,0 +1,13 @@ +--- src/lib/crypto/OSSLCryptoFactory.cpp.orig 2018-12-04 15:21:48 UTC ++++ src/lib/crypto/OSSLCryptoFactory.cpp +@@ -141,8 +141,10 @@ OSSLCryptoFactory::OSSLCryptoFactory() + // Initialise OpenSSL + OpenSSL_add_all_algorithms(); + ++#if !( OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) ) + // Make sure RDRAND is loaded first + ENGINE_load_rdrand(); ++#endif + // Locate the engine + rdrand_engine = ENGINE_by_id("rdrand"); + // Use RDRAND if available Property changes on: security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property