All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Nicola Di Lieto <nicola.dilieto@gmail.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/uacme: ualpn needs libopenssl
Date: Mon, 15 Aug 2022 15:52:00 +0200	[thread overview]
Message-ID: <20220815135200.GA2854108@scaer> (raw)
In-Reply-To: <20220815132057.570981-1-fontaine.fabrice@gmail.com>

Fabrice, All,

On 2022-08-15 15:20 +0200, Fabrice Fontaine spake thusly:
> ualpn is not compatible with libressl as stated by upstream in
> https://github.com/ndilieto/uacme/commit/32546c7caa1626bbef860cf81e53d10e29fca5cb
[--SNIP--]
> diff --git a/package/uacme/Config.in b/package/uacme/Config.in
> index 796f54754e..2c6864871c 100644
> --- a/package/uacme/Config.in
> +++ b/package/uacme/Config.in
> @@ -21,6 +21,8 @@ config BR2_PACKAGE_UACME_UALPN
>  	bool "enable ualpn"
>  	depends on BR2_TOOLCHAIN_HAS_THREADS
>  	select BR2_PACKAGE_LIBEV
> +	select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL \
> +		if !(BR2_PACKAGE_GNUTLS || BR2_PACKAGE_MBEDTLS)

There is something a little fishy in uacme, and the order it depends on
openssl, gnutls, mbedtls.

So, if both mbedtls and openssl are enabled, the above will not force
libopenssl, yet, openssl is used preferentially to mbedtls:

   18 ifeq ($(BR2_PACKAGE_GNUTLS),y)
   19 UACME_CONF_OPTS += --with-gnutls
   20 UACME_DEPENDENCIES += gnutls
   21 else ifeq ($(BR2_PACKAGE_OPENSSL),y)
   22 UACME_CONF_OPTS += --with-openssl
   23 UACME_DEPENDENCIES += openssl
   24 else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
   25 UACME_CONF_OPTS += --with-mbedtls
   26 UACME_DEPENDENCIES += mbedtls
   27 endif

So, this is not correct, as this could still be using libressl.

I think the order in the .mk should be reversed, with openssl coming
after embedtls, so that the preference order is the same in the .mk and
it is in Config.in.

Regards,
Yann E. MORIN.

>  	help
>  	  Build and install ualpn, the transparent proxying tls-alpn-01
>  	  challenge responder.
> -- 
> 2.35.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2022-08-15 13:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 13:20 [Buildroot] [PATCH 1/1] package/uacme: ualpn needs libopenssl Fabrice Fontaine
2022-08-15 13:52 ` Yann E. MORIN [this message]

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=20220815135200.GA2854108@scaer \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=nicola.dilieto@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.