]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: quic: fix build error when using the compatibility layer
authorWilly Tarreau <w@1wt.eu>
Wed, 24 Jan 2024 09:46:11 +0000 (10:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Jan 2024 09:49:24 +0000 (10:49 +0100)
Commit f783dd959b ("MINOR: quic: Enable early data at SSL session level
(aws-lc)") introduced a build error when using the openssl compat layer
because it references unknown function SSL_set_quic_early_data_context()
in qc_set_quic_early_data_context() that is not used in this case.

No backport is needed.

src/quic_ssl.c

index f004825202c5ce0fba7cc5607bf883448e970213..ca9fb86d7a97b48f3f0518afb41e581d0d22a6c3 100644 (file)
@@ -735,6 +735,8 @@ static int qc_ssl_sess_init(struct quic_conn *qc, SSL_CTX *ssl_ctx, SSL **ssl)
        return ret;
 }
 
+#ifndef USE_QUIC_OPENSSL_COMPAT
+
 /* Enable early data for <ssl> QUIC TLS session.
  * Return 1 if succeeded, 0 if not.
  */
@@ -768,6 +770,7 @@ static int qc_set_quic_early_data_enabled(struct quic_conn *qc, SSL *ssl)
 
        return 1;
 }
+#endif // USE_QUIC_OPENSSL_COMPAT
 
 /* Allocate the ssl_sock_ctx from connection <qc>. This creates the tasklet
  * used to process <qc> received packets. The allocated context is stored in