* [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl
@ 2022-07-25 14:58 Fabrice Fontaine
2022-07-26 16:43 ` Thomas Petazzoni via buildroot
2022-08-18 6:26 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2022-07-25 14:58 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
Fix the following build failure with libressl:
eap-tls.c: In function 'ssl_msg_callback':
eap-tls.c:1284:10: error: 'SSL3_RT_HEADER' undeclared (first use in this function); did you mean 'SSL3_RT_ALERT'?
1284 | case SSL3_RT_HEADER:
| ^~~~~~~~~~~~~~
| SSL3_RT_ALERT
Fixes:
- http://autobuild.buildroot.org/results/7d721833bddf73531fa03b0a626511af6826d0df
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
...pd-eap-tls.c-fix-build-with-libressl.patch | 36 +++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/pppd/0002-pppd-eap-tls.c-fix-build-with-libressl.patch
diff --git a/package/pppd/0002-pppd-eap-tls.c-fix-build-with-libressl.patch b/package/pppd/0002-pppd-eap-tls.c-fix-build-with-libressl.patch
new file mode 100644
index 0000000000..aefdc5b7a4
--- /dev/null
+++ b/package/pppd/0002-pppd-eap-tls.c-fix-build-with-libressl.patch
@@ -0,0 +1,36 @@
+From b0a011bc4abac8cb3de8dfff42b754ed236ecf0f Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 4 Jul 2022 10:07:03 +0200
+Subject: [PATCH] pppd/eap-tls.c: fix build with libressl (#338)
+
+Fix the following build failure with libressl:
+
+eap-tls.c: In function 'ssl_msg_callback':
+eap-tls.c:1284:10: error: 'SSL3_RT_HEADER' undeclared (first use in this function); did you mean 'SSL3_RT_ALERT'?
+ 1284 | case SSL3_RT_HEADER:
+ | ^~~~~~~~~~~~~~
+ | SSL3_RT_ALERT
+
+Fixes:
+ - http://autobuild.buildroot.org/results/7d721833bddf73531fa03b0a626511af6826d0df
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Retrieved (and backported) from:
+https://github.com/ppp-project/ppp/commit/b0a011bc4abac8cb3de8dfff42b754ed236ecf0f]
+---
+ pppd/eap-tls.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pppd/eap-tls.c b/pppd/eap-tls.c
+index b9bab842..40796d58 100644
+--- a/pppd/eap-tls.c
++++ b/pppd/eap-tls.c
+@@ -61,7 +61,7 @@
+ #include "mppe.h"
+ #include "pathnames.h"
+
+-#if OPENSSL_VERSION_NUMBER < 0x10100000L
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+
+ #define TLS_method SSLv23_method
+
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl
2022-07-25 14:58 [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl Fabrice Fontaine
@ 2022-07-26 16:43 ` Thomas Petazzoni via buildroot
2022-08-18 6:26 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-26 16:43 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
On Mon, 25 Jul 2022 16:58:36 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with libressl:
>
> eap-tls.c: In function 'ssl_msg_callback':
> eap-tls.c:1284:10: error: 'SSL3_RT_HEADER' undeclared (first use in this function); did you mean 'SSL3_RT_ALERT'?
> 1284 | case SSL3_RT_HEADER:
> | ^~~~~~~~~~~~~~
> | SSL3_RT_ALERT
>
> Fixes:
> - http://autobuild.buildroot.org/results/7d721833bddf73531fa03b0a626511af6826d0df
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> ...pd-eap-tls.c-fix-build-with-libressl.patch | 36 +++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/pppd/0002-pppd-eap-tls.c-fix-build-with-libressl.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl
2022-07-25 14:58 [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl Fabrice Fontaine
2022-07-26 16:43 ` Thomas Petazzoni via buildroot
@ 2022-08-18 6:26 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-08-18 6:26 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with libressl:
> eap-tls.c: In function 'ssl_msg_callback':
> eap-tls.c:1284:10: error: 'SSL3_RT_HEADER' undeclared (first use in this function); did you mean 'SSL3_RT_ALERT'?
> 1284 | case SSL3_RT_HEADER:
> | ^~~~~~~~~~~~~~
> | SSL3_RT_ALERT
> Fixes:
> - http://autobuild.buildroot.org/results/7d721833bddf73531fa03b0a626511af6826d0df
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2022.05.x and 2022.02.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-18 6:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-25 14:58 [Buildroot] [PATCH 1/1] package/pppd: fix build with libressl Fabrice Fontaine
2022-07-26 16:43 ` Thomas Petazzoni via buildroot
2022-08-18 6:26 ` Peter Korsgaard
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.