From: Björn Baumbach Date: Fri, 8 Aug 2025 15:31:34 +0000 (+0200) Subject: third_party: fix libquic build on older systems X-Git-Tag: samba-4.23.0rc2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d43c632b632991afc04871e8d68943e1f4ff7471;p=thirdparty%2Fsamba.git third_party: fix libquic build on older systems BUG: https://bugzilla.samba.org/show_bug.cgi?id=15896 Pair-Programmed-With: Stefan Metzmacher Signed-off-by: Björn Baumbach Signed-off-by: Stefan Metzmacher Reviewed-by: Stefan Metzmacher (cherry picked from commit 149933854f39b4628b14abc5dcd57e73e2a0a637) --- diff --git a/third_party/quic/libquic_handshake_wrapper.c b/third_party/quic/libquic_handshake_wrapper.c new file mode 100644 index 00000000000..3590eee5e11 --- /dev/null +++ b/third_party/quic/libquic_handshake_wrapper.c @@ -0,0 +1,2 @@ +#include "replace.h" +#include "libquic/handshake.c" diff --git a/third_party/quic/wscript b/third_party/quic/wscript index 3715e35e022..ab5cceab70b 100644 --- a/third_party/quic/wscript +++ b/third_party/quic/wscript @@ -19,6 +19,12 @@ def configure(conf): conf.SET_TARGET_TYPE('quic', 'EMPTY') return + if not conf.CHECK_DECLS('TLS_CIPHER_AES_GCM_256', headers='linux/tls.h'): + conf.DEFINE('TLS_CIPHER_AES_GCM_256', 52) + + if not conf.CHECK_DECLS('TLS_CIPHER_AES_CCM_128', headers='linux/tls.h'): + conf.DEFINE('TLS_CIPHER_AES_CCM_128', 53) + if not conf.CHECK_DECLS('TLS_CIPHER_CHACHA20_POLY1305', headers='linux/tls.h'): conf.DEFINE('TLS_CIPHER_CHACHA20_POLY1305', 54) @@ -46,7 +52,7 @@ def build(bld): bld.SAMBA_LIBRARY('quic', source=''' - libquic/handshake.c + libquic_handshake_wrapper.c ''', includes='libquic modules/include/uapi', deps='replace',