package/libcurl: add bearssl support
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 15 Mar 2020 14:41:05 +0000 (15:41 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 15 Mar 2020 14:57:23 +0000 (15:57 +0100)
bearssl support is available since version 7.68.0 and
https://github.com/curl/curl/commit/9b879160df01e7ddbb4770904391d3b74114302b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/libcurl/Config.in
package/libcurl/libcurl.mk

index d05cbedf77df8bf65a83a8bb80026412f778dc3b..b89c46f5eff710c37742e4ea3b339251e0dc92df 100644 (file)
@@ -52,6 +52,10 @@ config BR2_PACKAGE_LIBCURL_OPENSSL
        bool "OpenSSL"
        depends on BR2_PACKAGE_OPENSSL
 
+config BR2_PACKAGE_LIBCURL_BEARSSL
+       bool "BearSSL"
+       depends on BR2_PACKAGE_BEARSSL
+
 config BR2_PACKAGE_LIBCURL_GNUTLS
        bool "GnuTLS"
        depends on BR2_PACKAGE_GNUTLS
index 16b11ca9444edf3929364e0fa492385d83714637..5de2591178056ea77cc3a228bfee8ed9f2a2d839 100644 (file)
@@ -51,6 +51,13 @@ else
 LIBCURL_CONF_OPTS += --without-ssl
 endif
 
+ifeq ($(BR2_PACKAGE_LIBCURL_BEARSSL),y)
+LIBCURL_CONF_OPTS += --with-bearssl=$(STAGING_DIR)/usr
+LIBCURL_DEPENDENCIES += bearssl
+else
+LIBCURL_CONF_OPTS += --without-bearssl
+endif
+
 ifeq ($(BR2_PACKAGE_LIBCURL_GNUTLS),y)
 LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr \
        --with-ca-fallback