From patchwork Tue Nov 5 10:06:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grossholtz X-Patchwork-Id: 1189491 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=openest.io Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 476lj765bsz9sNT for ; Tue, 5 Nov 2019 21:07:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 9B8F28940A; Tue, 5 Nov 2019 10:07:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HD2_pT2QacBJ; Tue, 5 Nov 2019 10:07:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 75E398935C; Tue, 5 Nov 2019 10:07:45 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id A84BC1BF989 for ; Tue, 5 Nov 2019 10:07:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id A2F238A61A for ; Tue, 5 Nov 2019 10:07:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4nGUBryDPi5e for ; Tue, 5 Nov 2019 10:07:42 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 96B3F8A603 for ; Tue, 5 Nov 2019 10:07:42 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id a11so20587492wra.6 for ; Tue, 05 Nov 2019 02:07:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gUiS55YgNjM4KIqKNfw2E2+qep+9kzS9oq+tPdNTF1c=; b=M7jXD8wmAUYRzY6Va/Qn4URZ8cYuYfJTENusbwJ4JaaaQ6gRqg65A+yoJcJIDBwDU/ AXKUrY9iHcXDEvtXfjBsRoEcrKRVE3h3rGhbR32x+ekMuxlo6S7gAuvQIdsu+u8SCEXI ptsYeRSiRfwDfum3b5P9vc66Vu74IkFD8ya2mE1NEsKDWMOoQZs5Chmkf2XdP3DUJcDB yW71hE166sJLqQXsk7PSzvJ3bG2LXnZ0GqjLuTTO5H5+/QQBjdYs0M5un7MXyoQ4Z1mD m6IhiIrsX+Cv5cXKC1BJaKqW49/tUbGG4o6Nr4gfQ0LVtF8lVahtDO6QVX6K7yTJwc8q 3pcg== X-Gm-Message-State: APjAAAUV2AObX7go5+pmHnO9Fu+mD3B4h6hPvQ9acmSK97GT307G6mCz yAdlXOk7AmTLh0DS53q5ytxhtDmrzAU= X-Google-Smtp-Source: APXvYqy3gm+5SL+tmtdlbeuooBIhcKZkLw+mteDP/Wjpfqz357+yjTgOKvv6yI6jB5D+qY5nYe1iOQ== X-Received: by 2002:a05:6000:92:: with SMTP id m18mr28710371wrx.105.1572948460768; Tue, 05 Nov 2019 02:07:40 -0800 (PST) Received: from alderan.numericable.fr (249.164.25.93.rev.sfr.net. [93.25.164.249]) by smtp.gmail.com with ESMTPSA id 205sm20561332wmb.3.2019.11.05.02.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2019 02:07:39 -0800 (PST) From: Julien Grossholtz To: buildroot@buildroot.org Date: Tue, 5 Nov 2019 11:06:59 +0100 Message-Id: <20191105100659.1166232-1-julien.grossholtz@openest.io> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] libcurl: add wolfssl as an option for TLS X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter@korsgaard.com, Julien Grossholtz Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Libcurl recipe allows selecting between various TLS backends. Users can already select between several options but WolfSSL was missing. WolfSSL is an efficient TLS library, it supports TLS 1.3 and is used in many embedded systems. Add WolfSSL to libcurl "SSL/TLS library to use" choice list when WolfSSL package is enabled. When selected in the list, use libcurl --with-wolfssl configure option. Explicitly set --without-wolfssl when it is not selected. Signed-off-by: Julien Grossholtz --- package/libcurl/Config.in | 5 +++++ package/libcurl/libcurl.mk | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/package/libcurl/Config.in b/package/libcurl/Config.in index 0511786dc6..3a9ee0f121 100644 --- a/package/libcurl/Config.in +++ b/package/libcurl/Config.in @@ -51,6 +51,7 @@ config BR2_PACKAGE_LIBCURL_TLS_SUPPORT default y if BR2_PACKAGE_GNUTLS default y if BR2_PACKAGE_LIBNSS default y if BR2_PACKAGE_MBEDTLS + default y if BR2_PACKAGE_WOLFSSL choice prompt "SSL/TLS library to use" @@ -72,6 +73,10 @@ config BR2_PACKAGE_LIBCURL_MBEDTLS bool "mbed TLS" depends on BR2_PACKAGE_MBEDTLS +config BR2_PACKAGE_LIBCURL_WOLFSSL + bool "WolfSSL" + depends on BR2_PACKAGE_WOLFSSL + endchoice comment "A TLS library is needed for SSL/TLS support" diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk index bab7c8e1be..264db3913e 100644 --- a/package/libcurl/libcurl.mk +++ b/package/libcurl/libcurl.mk @@ -74,6 +74,13 @@ else LIBCURL_CONF_OPTS += --without-mbedtls endif +ifeq ($(BR2_PACKAGE_LIBCURL_WOLFSSL),y) +LIBCURL_CONF_OPTS += --with-wolfssl=$(STAGING_DIR)/usr +LIBCURL_DEPENDENCIES += wolfssl +else +LIBCURL_CONF_OPTS += --without-wolfssl +endif + ifeq ($(BR2_PACKAGE_C_ARES),y) LIBCURL_DEPENDENCIES += c-ares LIBCURL_CONF_OPTS += --enable-ares