[Buildroot] [PATCH v2, 1/1] package/uacme: ualpn needs libopenssl

Yann E. MORIN yann.morin.1998 at free.fr
Mon Aug 15 19:31:33 UTC 2022


Fabrice, All,

On 2022-08-15 18:01 +0200, Fabrice Fontaine spake thusly:
> ualpn is not compatible with libressl as stated by upstream in
> https://github.com/ndilieto/uacme/commit/32546c7caa1626bbef860cf81e53d10e29fca5cb
> resulting in the following build failure:
> 
> ualpn.c: In function 'ssl_client_hello_cb':
> ualpn.c:2038:16: error: 'SSL_CLIENT_HELLO_RETRY' undeclared (first use in this function); did you mean 'SSL_F_CLIENT_HELLO'?
>  2038 |         return SSL_CLIENT_HELLO_RETRY;
>       |                ^~~~~~~~~~~~~~~~~~~~~~
>       |                SSL_F_CLIENT_HELLO
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/d7d49cfce6f99c59e99c8e15399164fd5ecacc21
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Changes v1 -> v2 (after review of Yann E. Morin):
>  - Invert openssl and mbedtls order to avoid a build failure if libressl
>    and mbedtls are enabled at the same time

I've split that in two patches:
    package/uacme: fix crypto backend preference order
    package/uacme: ualpn needs libopenssl

... and wrote an analysis and a rationale for the first one.

Applied to master, thanks.

Regards,
Yann E. MORIN.

>  package/uacme/Config.in | 2 ++
>  package/uacme/uacme.mk  | 6 +++---
>  2 files changed, 5 insertions(+), 3 deletions(-)
> 
> 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)
>  	help
>  	  Build and install ualpn, the transparent proxying tls-alpn-01
>  	  challenge responder.
> diff --git a/package/uacme/uacme.mk b/package/uacme/uacme.mk
> index 2be96d534e..84e0105762 100644
> --- a/package/uacme/uacme.mk
> +++ b/package/uacme/uacme.mk
> @@ -18,12 +18,12 @@ UACME_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
>  ifeq ($(BR2_PACKAGE_GNUTLS),y)
>  UACME_CONF_OPTS += --with-gnutls
>  UACME_DEPENDENCIES += gnutls
> -else ifeq ($(BR2_PACKAGE_OPENSSL),y)
> -UACME_CONF_OPTS += --with-openssl
> -UACME_DEPENDENCIES += openssl
>  else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
>  UACME_CONF_OPTS += --with-mbedtls
>  UACME_DEPENDENCIES += mbedtls
> +else ifeq ($(BR2_PACKAGE_OPENSSL),y)
> +UACME_CONF_OPTS += --with-openssl
> +UACME_DEPENDENCIES += openssl
>  endif
>  
>  ifeq ($(BR2_PACKAGE_UACME_UALPN),y)
> -- 
> 2.35.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at 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.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list