config ADK_COMPILE_GNUTLS
	tristate
	default n
	depends ADK_PACKAGE_LIBGNUTLS

config ADK_PACKAGE_LIBGNUTLS
	prompt "libgnutls......................... The GNU TLS library"
	tristate
	default n
	select ADK_COMPILE_GNUTLS
	select ADK_PACKAGE_LIBGCRYPT
	select ADK_PACKAGE_LIBTASN1
	select ADK_PACKAGE_ZLIB
	help
	  GnuTLS is a project that aims to develop a library which provides a
	  secure layer, over a reliable transport layer. Currently the GnuTLS
	  library implements the proposed standards by the IETF's TLS working
	  group.

	  Quoting from RFC2246 - the TLS 1.0 protocol specification:

	  "The TLS protocol provides communications privacy over the Internet.
	   The protocol allows client/server applications to communicate in a
	   way that is designed to prevent eavesdropping, tampering, or message
	   forgery."

	  Features
	    * Support for TLS 1.1 and SSL 3.0 protocols
	    * Support for TLS extensions
	    * Support for authentication using the SRP protocol
	    * Support for authentication using both X.509 certificates
	    * and OpenPGP keys Support for X.509 and OpenPGP certificate handling.
	    * Supports all the strong encryption algorithms

	  http://www.gnu.org/software/gnutls/

	  This packages contains the core GnuTLS shared library,
	  needed by other programs.

config ADK_PACKAGE_LIBGNUTLS_EXTRA
	prompt "libgnutls-extra................... The GNU TLS extra library"
	tristate
	default n
	depends ADK_PACKAGE_LIBGNUTLS
	select ADK_PACKAGE_LIBOPENCDK
	select ADK_PACKAGE_LIBLZO
	help
	  GnuTLS is a project that aims to develop a library which provides a
	  secure layer, over a reliable transport layer. Currently the GnuTLS
	  library implements the proposed standards by the IETF's TLS working
	  group.

	  This packages contains the optional "extra" GnuTLS shared
	  library, needed by other programs, which contains OpenPGP,
	  TLS/IA and LZO2 compression.

config ADK_PACKAGE_LIBGNUTLS_OPENSSL
	prompt "libgnutls-openssl................. The GNU TLS OpenSSL compatibility layer library"
	tristate
	default n
	depends ADK_PACKAGE_LIBGNUTLS
	help
	  GnuTLS is a project that aims to develop a library which provides a
	  secure layer, over a reliable transport layer. Currently the GnuTLS
	  library implements the proposed standards by the IETF's TLS working
	  group.

	  This packages contains the GnuTLS OpenSSL compatibility
	  layer shared library.

config ADK_PACKAGE_LIBGNUTLSXX
	prompt "libgnutlsxx....................... The GNU TLS C++ library"
	tristate
	default n
	depends on ADK_CXX
	depends ADK_PACKAGE_LIBGNUTLS
	help
	  GnuTLS is a project that aims to develop a library which provides a
	  secure layer, over a reliable transport layer. Currently the GnuTLS
	  library implements the proposed standards by the IETF's TLS working
	  group.

	  This packages contains the GnuTLS C++ shared library.

choice
prompt "C++ library to use"
depends on ADK_PACKAGE_LIBGNUTLSXX
default ADK_COMPILE_GNUTLS_WITH_STDCXX if ADK_TARGET_LIB_GLIBC
default ADK_COMPILE_GNUTLS_WITH_UCLIBCXX if ADK_TARGET_LIB_UCLIBC

config ADK_COMPILE_GNUTLS_WITH_STDCXX
	bool "Standard C++ library"
	select ADK_PACKAGE_LIBSTDCXX
	help

config ADK_COMPILE_GNUTLS_WITH_UCLIBCXX
	bool "Embedded uClibc++ library"
	select ADK_PACKAGE_UCLIBCXX
	help

endchoice

config ADK_PACKAGE_GNUTLS_UTILS
	prompt "gnutls-utils...................... The GNU TLS utilities"
	tristate
	default n
	depends ADK_PACKAGE_LIBGNUTLS
	select ADK_PACKAGE_LIBGNUTLS_EXTRA
	help
	  GnuTLS is a project that aims to develop a library which provides a
	  secure layer, over a reliable transport layer. Currently the GnuTLS
	  library implements the proposed standards by the IETF's TLS working
	  group.

	  This packages contains some GnuTLS command line utilities.
