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
|
config GNUTLS_ANON
|
||||||
bool "enable anonymous authentication support"
|
bool "enable anonymous authentication support"
|
||||||
|
|
||||||
|
config GNUTLS_PKCS11
|
||||||
|
bool "enable smart card (PKCS11) support"
|
||||||
|
select GNUTLS_EXT_LIBTASN1
|
||||||
|
default n
|
||||||
|
|
||||||
config GNUTLS_EXT_LIBTASN1
|
config GNUTLS_EXT_LIBTASN1
|
||||||
bool "use external libtasn1"
|
bool "use external libtasn1"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -75,7 +75,7 @@ endef
|
||||||
define Package/libgnutls
|
define Package/libgnutls
|
||||||
$(call Package/gnutls/Default)
|
$(call Package/gnutls/Default)
|
||||||
TITLE+= (library)
|
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
|
endef
|
||||||
|
|
||||||
define Package/libgnutls/description
|
define Package/libgnutls/description
|
||||||
|
@ -106,13 +106,16 @@ CONFIGURE_ARGS+= \
|
||||||
--disable-doc \
|
--disable-doc \
|
||||||
--disable-tests \
|
--disable-tests \
|
||||||
--disable-rsa-export \
|
--disable-rsa-export \
|
||||||
--disable-crywrap \
|
--disable-crywrap
|
||||||
--without-p11-kit
|
|
||||||
|
|
||||||
ifneq ($(CONFIG_GNUTLS_EXT_LIBTASN1),y)
|
ifneq ($(CONFIG_GNUTLS_EXT_LIBTASN1),y)
|
||||||
CONFIGURE_ARGS += --with-included-libtasn1
|
CONFIGURE_ARGS += --with-included-libtasn1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_GNUTLS_PKCS11),y)
|
||||||
|
CONFIGURE_ARGS += --without-p11-kit
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_LIBNETTLE_MINI),y)
|
ifeq ($(CONFIG_LIBNETTLE_MINI),y)
|
||||||
CONFIGURE_ARGS += --with-nettle-mini
|
CONFIGURE_ARGS += --with-nettle-mini
|
||||||
endif
|
endif
|
||||||
|
@ -209,6 +212,11 @@ ifeq ($(CONFIG_GNUTLS_PSK),y)
|
||||||
$(PKG_INSTALL_DIR)/usr/bin/psktool \
|
$(PKG_INSTALL_DIR)/usr/bin/psktool \
|
||||||
$(1)/usr/bin/
|
$(1)/usr/bin/
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CONFIG_GNUTLS_PKCS11),y)
|
||||||
|
$(CP) \
|
||||||
|
$(PKG_INSTALL_DIR)/usr/bin/p11tool \
|
||||||
|
$(1)/usr/bin/
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue