Index: head/security/softhsm2/Makefile =================================================================== --- head/security/softhsm2/Makefile (revision 505705) +++ head/security/softhsm2/Makefile (revision 505706) @@ -1,69 +1,69 @@ # Created by: Jaap Akkerhuis # $FreeBSD$ PORTNAME= softhsm PORTVERSION= 2.5.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= http://dist.opendnssec.org/source/ \ http://dist.opendnssec.org/source/testing/ PKGNAMESUFFIX= 2 MAINTAINER= jaap@NLnetLabs.nl COMMENT= Software implementation of a Hardware Security Module (HSM) LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USES= libtool ssl pkgconfig SUB_FILES= pkg-message CONFLICTS= softhsm-1.* USE_LDCONFIG= yes LIB_DEPENDS+= libcppunit.so:devel/cppunit OPTIONS_DEFINE= SQLITE MIGRATE MIGRATE_IMPLIES= SQLITE OPTIONS_SUB= yes SQLITE_DESC= Build with object store backend DB support (SQLITE3) MIGRATE_DESC= Build the migration tool OPTIONS_SINGLE= CRYP OPTIONS_SINGLE_CRYP= CRYP_OPEN CRYP_BOTAN CRYP_OPEN_DESC= Build with OpenSSL crypto library CRYP_BOTAN_DESC= Build with Botan crypto library OPTIONS_DEFAULT= CRYP_OPEN SQLITE MIGRATE SQLITE_CONFIGURE_WITH= sqlite3=${LOCALBASE} objectstore-backend-db SQLITE_USES= sqlite MIGRATE_CONFIGURE_WITH= migrate 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 .if ${SSL_DEFAULT:Mlibressl*} || ${SSL_DEFAULT:Mopenssl111} CONFIGURE_ARGS+= --disable-gost .endif # openssl-1.1.1 (default after 1200080) doesn't support GHOST (yet), punt for now. .if ${OSVERSION}>=1200080 CONFIGURE_ARGS+= --disable-gost .endif post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/share/p11-kit/modules ${INSTALL_DATA} ${WRKSRC}/softhsm2.module \ ${STAGEDIR}${PREFIX}/share/p11-kit/modules .include Index: head/security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp =================================================================== --- head/security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp (nonexistent) +++ head/security/softhsm2/files/patch-src_lib_crypto_OSSLCryptoFactory.cpp (revision 505706) @@ -0,0 +1,13 @@ +--- src/lib/crypto/OSSLCryptoFactory.cpp.orig 2019-07-02 17:52:44 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: head/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