mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: Re: [ptxdist] [PATCH 2/2] opensc: add optional openssl support
Date: Fri, 3 May 2019 09:47:06 +0200	[thread overview]
Message-ID: <20190503074706.7qx737lezeeuun7e@pengutronix.de> (raw)
In-Reply-To: <20190502092022.16926-2-r.czerwinski@pengutronix.de>

On Thu, May 02, 2019 at 11:20:22AM +0200, Rouven Czerwinski wrote:
> Add optional openssl support for X.509 certificate imports.
> 
> Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
> ---
>  rules/opensc.in   | 7 +++++++
>  rules/opensc.make | 2 +-
>  2 files changed, 8 insertions(+), 1 deletion(-)
> 
> diff --git a/rules/opensc.in b/rules/opensc.in
> index e42d79259..499f28d3c 100644
> --- a/rules/opensc.in
> +++ b/rules/opensc.in
> @@ -6,6 +6,7 @@ menuconfig OPENSC
>  	select READLINE		if OPENSC_READLINE
>  	select OPENCT		if OPENSC_OPENCT
>  	select PCSC_LITE	if OPENSC_PCSC
> +	select OPENSSL		if OPENSC_OPENSSL
>  	help
>  	  Smart card utilities with support for PKCS#15 compatible cards
>  
> @@ -33,6 +34,12 @@ endchoice
>  config OPENSC_READLINE
>  	bool "readline support"
>  
> +config OPENSC_OPENSSL
> +	bool "openssl support"
> +	help
> +	  Enable OpenSSL support for opensc and tools.
> +	  This allows the import of X.509 certificates with pkcs11-tool.
> +
>  config OPENSC_TOOLS
>  	bool "install tools"
>  
> diff --git a/rules/opensc.make b/rules/opensc.make
> index 1eaa1cccd..7682e5ca4 100644
> --- a/rules/opensc.make
> +++ b/rules/opensc.make
> @@ -39,7 +39,7 @@ OPENSC_CONF_OPT := \
>  	--sysconfdir=/etc/opensc \
>  	--enable-zlib \
>  	--$(call ptx/endis,PTXCONF_OPENSC_READLINE)-readline \
> -	--disable-openssl \
> +	--$(call ptx/endis,PTXCONF_OPENSC_OPENSSL)-openssl \
>  	--$(call ptx/endis,PTXCONF_OPENSC_OPENCT)-openct \
>  	--$(call ptx/endis,PTXCONF_OPENSC_PCSC)-pcsc \
>  	--disable-ctapi \

ifdef PTXCONF_OPENSC_OPENSSL
OPENSC_CFLAGS := -Wno-implicit-fallthrough
endif

Otherwise building fails with a modern compiler. This is independent of
icecc related implicit-fallthrough issues.

Michael

> -- 
> 2.20.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:[~2019-05-03  7:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-02  9:20 [ptxdist] [PATCH 1/2] opensc: version bump 0.15.0 → 0.19.0 Rouven Czerwinski
2019-05-02  9:20 ` [ptxdist] [PATCH 2/2] opensc: add optional openssl support Rouven Czerwinski
2019-05-03  7:47   ` Michael Olbrich [this message]
2019-05-03  7:46 ` [ptxdist] [PATCH 1/2] opensc: version bump 0.15.0 → 0.19.0 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=20190503074706.7qx737lezeeuun7e@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=r.czerwinski@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