Initial Commit
- initial default booting image
This commit is contained in:
23
package/pkcs11-helper/Config.in
Normal file
23
package/pkcs11-helper/Config.in
Normal file
@@ -0,0 +1,23 @@
|
||||
config BR2_PACKAGE_PKCS11_HELPER
|
||||
bool "pkcs11-helper"
|
||||
depends on !BR2_STATIC_LIBS # dlfcn.h
|
||||
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
|
||||
|
||||
comment "pkcs11-helper needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
6
package/pkcs11-helper/pkcs11-helper.hash
Normal file
6
package/pkcs11-helper/pkcs11-helper.hash
Normal file
@@ -0,0 +1,6 @@
|
||||
# From https://github.com/OpenSC/pkcs11-helper/releases/tag/pkcs11-helper-1.31.0
|
||||
sha256 46f0067bccd7be2c28f88b8bca775172b9e52fb6fc1280b44ca8bb831433fef9 pkcs11-helper-1.31.0.tar.bz2
|
||||
# Locally computed
|
||||
sha256 e05d3ce5570debefd9763c8529fb9a4329cb4713618354216e3cca59ee9902e0 COPYING
|
||||
sha256 865496cf23a6c792739ff2f9ea11e95ac99db89cfe3780a295b4e1495a9c19fe COPYING.BSD
|
||||
sha256 cd2e7d63a11058f19c58b06fb8c759140ce70788369dce6e6e9db40d3475021e COPYING.GPL
|
||||
57
package/pkcs11-helper/pkcs11-helper.mk
Normal file
57
package/pkcs11-helper/pkcs11-helper.mk
Normal file
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# pkcs11-helper
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PKCS11_HELPER_VERSION = 1.31.0
|
||||
PKCS11_HELPER_SOURCE = pkcs11-helper-$(PKCS11_HELPER_VERSION).tar.bz2
|
||||
PKCS11_HELPER_SITE = https://github.com/OpenSC/pkcs11-helper/releases/download/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_DEPENDENCIES = host-pkgconf
|
||||
PKCS11_HELPER_INSTALL_STAGING = YES
|
||||
|
||||
PKCS11_HELPER_CONF_OPTS = \
|
||||
--disable-crypto-engine-polarssl \
|
||||
--disable-crypto-engine-cryptoapi
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
PKCS11_HELPER_CONF_OPTS += --enable-slotevent --enable-threading
|
||||
else
|
||||
PKCS11_HELPER_CONF_OPTS += --disable-slotevent --disable-threading
|
||||
endif
|
||||
|
||||
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))
|
||||
Reference in New Issue
Block a user