diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-09-07 11:40:24 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-07 11:43:45 -0700 |
commit | 154fc9f5a66e35c633d839fb564f0824be97b108 (patch) | |
tree | 18b8e6f51be44ae2c8727439425fc24d59dd01c0 | |
parent | 42e5af1501142bf35d46fe4ab107b7f112762b8d (diff) | |
download | meta-openembedded-154fc9f5a66e35c633d839fb564f0824be97b108.tar.gz |
openconnect: Fix build with GnuTLS v3.8.1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/openconnect/openconnect/0001-Shim-for-renaming-of-GNUTLS_NO_EXTENSIONS-in-GnuTLS-.patch b/meta-networking/recipes-connectivity/openconnect/openconnect/0001-Shim-for-renaming-of-GNUTLS_NO_EXTENSIONS-in-GnuTLS-.patch new file mode 100644 index 0000000000..9dd3da75ad --- /dev/null +++ b/meta-networking/recipes-connectivity/openconnect/openconnect/0001-Shim-for-renaming-of-GNUTLS_NO_EXTENSIONS-in-GnuTLS-.patch | |||
@@ -0,0 +1,43 @@ | |||
1 | From e4ea64134cfe3763332c16dcac52dd894b935880 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniel Lenski <dlenski@gmail.com> | ||
3 | Date: Tue, 22 Aug 2023 12:02:19 -0700 | ||
4 | Subject: [PATCH] Shim for renaming of GNUTLS_NO_EXTENSIONS in GnuTLS v3.8.1 | ||
5 | |||
6 | The constant `GNUTLS_NO_EXTENSIONS` was renamed in | ||
7 | https://gitlab.com/gnutls/gnutls/-/commit/a7c4a04e (released in v3.8.1), and | ||
8 | then a backwards-compatibility shim was belatedly added in | ||
9 | https://gitlab.com/gnutls/gnutls/-/commit/abfa8634, which has not yet been | ||
10 | released. | ||
11 | |||
12 | We need to re-add the constant ourselves in order to build correctly with | ||
13 | GnuTLS v3.8.1. This should fix | ||
14 | https://gitlab.com/openconnect/openconnect/-/issues/650. | ||
15 | |||
16 | Upstream-Status: Backport [https://git.infradead.org/users/dwmw2/openconnect.git/commit/7512698217c4104aade7a2df669a20de68f3bb8c] | ||
17 | Signed-off-by: Daniel Lenski <dlenski@gmail.com> | ||
18 | --- | ||
19 | gnutls-dtls.c | 8 ++++++++ | ||
20 | 1 file changed, 8 insertions(+) | ||
21 | |||
22 | diff --git a/gnutls-dtls.c b/gnutls-dtls.c | ||
23 | index 3fd78e95..50a4bb4e 100644 | ||
24 | --- a/gnutls-dtls.c | ||
25 | +++ b/gnutls-dtls.c | ||
26 | @@ -39,6 +39,14 @@ | ||
27 | # define GNUTLS_CIPHER_CHACHA20_POLY1305 23 | ||
28 | #endif | ||
29 | |||
30 | +#if GNUTLS_VERSION_NUMBER >= 0x030801 && !defined(GNUTLS_NO_EXTENSIONS) | ||
31 | +/* XX: GNUTLS_NO_EXTENSIONS was renamed in GnuTLS v3.8.1. A | ||
32 | + * backwards-compatibility shim was added in a subsequent commit, but | ||
33 | + * not yet released. | ||
34 | + */ | ||
35 | +# define GNUTLS_NO_EXTENSIONS GNUTLS_NO_DEFAULT_EXTENSIONS | ||
36 | +#endif | ||
37 | + | ||
38 | /* sets the DTLS MTU and returns the actual tunnel MTU */ | ||
39 | unsigned dtls_set_mtu(struct openconnect_info *vpninfo, unsigned mtu) | ||
40 | { | ||
41 | -- | ||
42 | 2.42.0 | ||
43 | |||
diff --git a/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb b/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb index f2650e0eb6..7d0e5f2052 100644 --- a/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb +++ b/meta-networking/recipes-connectivity/openconnect/openconnect_9.12.bb | |||
@@ -4,6 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c" | |||
4 | 4 | ||
5 | SRC_URI = " \ | 5 | SRC_URI = " \ |
6 | git://git.infradead.org/users/dwmw2/openconnect.git;branch=master \ | 6 | git://git.infradead.org/users/dwmw2/openconnect.git;branch=master \ |
7 | file://0001-Shim-for-renaming-of-GNUTLS_NO_EXTENSIONS-in-GnuTLS-.patch \ | ||
7 | " | 8 | " |
8 | SRCREV = "59f2e59eb3e436364ef82e630e5a2f88f32acd58" | 9 | SRCREV = "59f2e59eb3e436364ef82e630e5a2f88f32acd58" |
9 | 10 | ||