]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: quic: fix build on centos 8 and USE_QUIC_OPENSSL_COMPAT
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Sep 2023 14:26:58 +0000 (16:26 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 14 Sep 2023 14:26:58 +0000 (16:26 +0200)
When using USE_QUIC_OPENSSL_COMPAT=1 on centos-8 the build fail this
way:

In file included from src/quic_openssl_compat.c:11:
/usr/include/openssl/kdf.h:33:46: error: unknown type name 'va_list'
 int EVP_KDF_vctrl(EVP_KDF_CTX *ctx, int cmd, va_list args);

This is because of openssl/kdf.h being include before openssl-compat.h

src/quic_openssl_compat.c

index 99661377e267e5040039acdd2dff9c3fbe0ae56a..2accb329379ab07668ab0664cf4326c483b451e3 100644 (file)
@@ -6,11 +6,10 @@
 #error "Must define USE_OPENSSL"
 #endif
 
+#include <haproxy/openssl-compat.h>
 /* Highly inspired from nginx QUIC TLS compatibilty code */
-
 #include <openssl/kdf.h>
 
-#include <haproxy/openssl-compat.h>
 #include <haproxy/quic_conn.h>
 #include <haproxy/quic_tls.h>
 #include <haproxy/ssl_sock.h>