mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] libcurl: Added an option set to compile libcurl with optional builtin CA certificate default directory or builtin CA certificate default bundle file.
Date: Thu, 9 Apr 2015 10:58:24 +0200	[thread overview]
Message-ID: <20150409085824.GA9865@pengutronix.de> (raw)
In-Reply-To: <1E9AED858BEB204B9DE4F807C7ED0EF61B0EA699@EMSRVWIN2931.apps.edc.thyssenkrupp.com>

On Thu, Apr 02, 2015 at 09:18:05PM +0000, Rüdiger, Christoph wrote:
> [PATCH] libcurl: Added an option set to compile libcurl with optional
>  builtin CA certificate default directory or builtin CA certificate default
>  bundle file.
> 
> Signed-off-by: Christoph Ruediger <christoph.ruediger@thyssenkrupp.com>
> ---
>  rules/libcurl.in   | 27 +++++++++++++++++++++++++++
>  rules/libcurl.make | 21 ++++++++++++++++++---
>  2 files changed, 45 insertions(+), 3 deletions(-)
> 
> diff --git a/rules/libcurl.in b/rules/libcurl.in
> index 0ad7fb4..bdb0ad5 100644
> --- a/rules/libcurl.in
> +++ b/rules/libcurl.in
> @@ -41,6 +41,33 @@ config LIBCURL_FILE
>  config LIBCURL_SSL
>         bool "ssl"
>  
> +if LIBCURL_SSL
> +
> +choice
> +	prompt "Central CA certificate storage"
> +	
> +	config LIBCURL_SSL_NOCA
> +		bool "No CA storage"
> +
> +	config LIBCURL_SSL_CAPATH
> +		bool "CA directory"
> +
> +	config LIBCURL_SSL_CABUNDLE
> +		bool "CA bundle"
> +endchoice
> +
> +config LIBCURL_SSL_CAPATH_PATH
> +	string "CA directory path"
> +	depends on LIBCURL_SSL_CAPATH
> +	default "/etc/ssl/certs"
> +
> +config LIBCURL_SSL_CABUNDLE_PATH
> +	string "CA bundle path"
> +	depends on LIBCURL_SSL_CABUNDLE
> +	default "/etc/ssl/certs/ca-certificates.crt"

Any reason, why these paths should be configurable?

And we need a package that provides those files, right?

Michael

> +
> +endif
> +
>  config LIBCURL_CRYPTO_AUTH
>         bool "cryptographic authentication"
>  
> diff --git a/rules/libcurl.make b/rules/libcurl.make
> index 5babcb0..d6cb36c 100644
> --- a/rules/libcurl.make
> +++ b/rules/libcurl.make
> @@ -62,8 +62,6 @@ LIBCURL_AUTOCONF := \
>  	--without-gssapi \
>  	--without-gnutls \
>  	--without-nss \
> -	--without-ca-bundle \
> -	--without-ca-path \
>  	--without-libidn \
>  	--without-axtls \
>  	--without-cyassl \
> @@ -78,8 +76,25 @@ LIBCURL_AUTOCONF := \
>  
>  ifdef PTXCONF_LIBCURL_SSL
>  LIBCURL_AUTOCONF += --with-ssl=$(SYSROOT)
> +ifdef PTXCONF_LIBCURL_SSL_CABUNDLE
> +LIBCURL_AUTOCONF += \
> +	--with-ca-bundle=$(PTXCONF_LIBCURL_SSL_CABUNDLE_PATH) \
> +	--without-ca-path
> +else
> +ifdef PTXCONF_LIBCURL_SSL_CAPATH
> +LIBCURL_AUTOCONF += \
> +	--with-ca-path=$(PTXCONF_LIBCURL_SSL_CAPATH_PATH) \
> +	--without-ca-bundle
>  else
> -LIBCURL_AUTOCONF += --without-ssl
> +LIBCURL_AUTOCONF += \
> +	--without-ca-bundle \
> +	--without-ca-path
> +endif
> +endif
> +else
> +LIBCURL_AUTOCONF += --without-ssl \
> +	--without-ca-bundle \
> +	--without-ca-path
>  endif
>  
>  # ----------------------------------------------------------------------------
> -- 
> 1.9.1
> 
> -- 
> ptxdist mailing list
> ptxdist@pengutronix.de
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2015-04-09  8:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 21:18 Rüdiger, Christoph
2015-04-09  8:58 ` Michael Olbrich [this message]
2015-04-09 10:05   ` Rüdiger, Christoph
2015-04-09 15:27     ` Michael Olbrich
2015-04-10 13:40       ` Bruno Thomsen
2015-04-27  8:53         ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150409085824.GA9865@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox