summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/gnutls.in15
-rw-r--r--rules/gnutls.make5
2 files changed, 18 insertions, 2 deletions
diff --git a/rules/gnutls.in b/rules/gnutls.in
index 10a181e17..3a5bd3ac5 100644
--- a/rules/gnutls.in
+++ b/rules/gnutls.in
@@ -1,10 +1,11 @@
## SECTION=networking
-config GNUTLS
+menuconfig GNUTLS
tristate
select LIBGCRYPT
select LIBTASN1
- prompt "gnutls"
+ select OPENSSL if GNUTLS_OPENSSL
+ prompt "gnutls "
help
GnuTLS is a secure communications library implementing the SSL,
TLS and DTLS protocols and technologies around them.
@@ -13,3 +14,13 @@ config GNUTLS
APIs to parse and write X.509, PKCS #12, OpenPGP and other required
structures. It is aimed to be portable and efficient with focus on
security and interoperability.
+
+if GNUTLS
+
+config GNUTLS_OPENSSL
+ bool
+ prompt "openssl compatibility"
+ help
+ Enables the OpenSSL compatibility support.
+
+endif
diff --git a/rules/gnutls.make b/rules/gnutls.make
index b64a36c1f..08923aed5 100644
--- a/rules/gnutls.make
+++ b/rules/gnutls.make
@@ -38,6 +38,7 @@ GNUTLS_CONF_OPT := \
--with-libgcrypt \
--with-libgcrypt-prefix=$(PTXDIST_SYSROOT_TARGET)/usr \
--without-p11-kit \
+ --$(call ptx/endis, PTXCONF_GNUTLS_OPENSSL)-openssl-compatibility \
--disable-guile
# ----------------------------------------------------------------------------
@@ -55,6 +56,10 @@ $(STATEDIR)/gnutls.targetinstall:
@$(call install_lib, gnutls, 0, 0, 0644, libgnutls)
+ifdef PTXCONF_GNUTLS_OPENSSL
+ @$(call install_lib, gnutls, 0, 0, 0644, libgnutls-openssl)
+endif
+
@$(call install_finish, gnutls)
@$(call touch)