source "package/mbedtls/Config.in"
source "package/nettle/Config.in"
source "package/openssl/Config.in"
+ source "package/pkcs11-helper/Config.in"
source "package/rhash/Config.in"
source "package/tinydtls/Config.in"
source "package/tpm2-tss/Config.in"
--- /dev/null
+config BR2_PACKAGE_PKCS11_HELPER
+ bool "pkcs11-helper"
+ help
+ pkcs11-helper is a library that simplifies the interaction
+ with PKCS#11 providers for end-user applications.
+
+ pkcs11-helper allows using multiple PKCS#11 providers at the
+ same time, enumerating available token certificates, or
+ selecting a certificate directly by serialized id, handling
+ card removal and card insert events, handling card re-insert
+ to a different slot, supporting session expiration and much
+ more all using a simple API.
+
+ pkcs11-helper is not designed to manage card content, since
+ object attributes are usually vendor specific, and 99% of
+ application need to access existing objects in order to
+ perform signature and decryption.
+
+ https://github.com/OpenSC/pkcs11-helper
--- /dev/null
+################################################################################
+#
+# pkcs11-helper
+#
+################################################################################
+
+PKCS11_HELPER_VERSION = 1.25.1
+PKCS11_HELPER_SITE = $(call github,OpenSC,pkcs11-helper,pkcs11-helper-$(PKCS11_HELPER_VERSION))
+PKCS11_HELPER_LICENSE = GPL-2.0 or BSD-3-Clause
+PKCS11_HELPER_LICENSE_FILES = COPYING COPYING.BSD COPYING.GPL
+PKCS11_HELPER_AUTORECONF = YES
+PKCS11_HELPER_INSTALL_STAGING = YES
+
+PKCS11_HELPER_CONF_OPTS = \
+ --disable-crypto-engine-polarssl \
+ --disable-crypto-engine-cryptoapi
+
+ifeq ($(BR2_PACKAGE_GNUTLS),y)
+PKCS11_HELPER_DEPENDENCIES += gnutls
+PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-gnutls
+else
+PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-gnutls
+endif
+
+ifeq ($(BR2_PACKAGE_LIBNSS),y)
+PKCS11_HELPER_DEPENDENCIES += libnss
+PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-nss
+else
+PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-nss
+endif
+
+ifeq ($(BR2_PACKAGE_MBEDTLS),y)
+PKCS11_HELPER_DEPENDENCIES += mbedtls
+PKCS11_HELPER_CONF_OPTS += --enable-crypto-engine-mbedtls
+else
+PKCS11_HELPER_CONF_OPTS += --disable-crypto-engine-mbedtls
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+PKCS11_HELPER_DEPENDENCIES += openssl
+PKCS11_HELPER_CONF_OPTS += \
+ --enable-openssl \
+ --enable-crypto-engine-openssl
+else
+PKCS11_HELPER_CONF_OPTS += \
+ --disable-openssl \
+ --disable-crypto-engine-openssl
+endif
+
+$(eval $(autotools-package))