gnutls: Allow enabling smart card support as option.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
parent
f8a16b14f2
commit
f87135adb3
2 changed files with 16 additions and 3 deletions
|
@ -31,6 +31,11 @@ config GNUTLS_PSK
|
|||
config GNUTLS_ANON
|
||||
bool "enable anonymous authentication support"
|
||||
|
||||
config GNUTLS_PKCS11
|
||||
bool "enable smart card (PKCS11) support"
|
||||
select GNUTLS_EXT_LIBTASN1
|
||||
default n
|
||||
|
||||
config GNUTLS_EXT_LIBTASN1
|
||||
bool "use external libtasn1"
|
||||
default n
|
||||
|
|
|
@ -75,7 +75,7 @@ endef
|
|||
define Package/libgnutls
|
||||
$(call Package/gnutls/Default)
|
||||
TITLE+= (library)
|
||||
DEPENDS+= +libnettle +!LIBNETTLE_MINI:libgmp +GNUTLS_EXT_LIBTASN1:libtasn1
|
||||
DEPENDS+= +libnettle +!LIBNETTLE_MINI:libgmp +GNUTLS_EXT_LIBTASN1:libtasn1 +GNUTLS_PKCS11:p11-kit
|
||||
endef
|
||||
|
||||
define Package/libgnutls/description
|
||||
|
@ -106,13 +106,16 @@ CONFIGURE_ARGS+= \
|
|||
--disable-doc \
|
||||
--disable-tests \
|
||||
--disable-rsa-export \
|
||||
--disable-crywrap \
|
||||
--without-p11-kit
|
||||
--disable-crywrap
|
||||
|
||||
ifneq ($(CONFIG_GNUTLS_EXT_LIBTASN1),y)
|
||||
CONFIGURE_ARGS += --with-included-libtasn1
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_GNUTLS_PKCS11),y)
|
||||
CONFIGURE_ARGS += --without-p11-kit
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_LIBNETTLE_MINI),y)
|
||||
CONFIGURE_ARGS += --with-nettle-mini
|
||||
endif
|
||||
|
@ -209,6 +212,11 @@ ifeq ($(CONFIG_GNUTLS_PSK),y)
|
|||
$(PKG_INSTALL_DIR)/usr/bin/psktool \
|
||||
$(1)/usr/bin/
|
||||
endif
|
||||
ifeq ($(CONFIG_GNUTLS_PKCS11),y)
|
||||
$(CP) \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/p11tool \
|
||||
$(1)/usr/bin/
|
||||
endif
|
||||
endef
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue