]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
third_party: fix libquic build on older systems
authorBjörn Baumbach <bb@sernet.de>
Fri, 8 Aug 2025 15:31:34 +0000 (17:31 +0200)
committerBjörn Baumbach <bb@sernet.de>
Wed, 20 Aug 2025 14:03:33 +0000 (14:03 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15896

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Björn Baumbach <bb@sernet.de>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
third_party/quic/libquic_handshake_wrapper.c [new file with mode: 0644]
third_party/quic/wscript

diff --git a/third_party/quic/libquic_handshake_wrapper.c b/third_party/quic/libquic_handshake_wrapper.c
new file mode 100644 (file)
index 0000000..3590eee
--- /dev/null
@@ -0,0 +1,2 @@
+#include "replace.h"
+#include "libquic/handshake.c"
index 3715e35e0229b83e76a562e9d4711a9e2c335436..ab5cceab70b57386ae73b0b3cc72403d5f8b2b78 100644 (file)
@@ -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',