From: Willy Tarreau Date: Wed, 24 Jan 2024 09:46:11 +0000 (+0100) Subject: BUILD: quic: fix build error when using the compatibility layer X-Git-Tag: v3.0-dev2~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=59e9b6c204dd384d4acf25bf2521546b78d6afa3;p=thirdparty%2Fhaproxy.git BUILD: quic: fix build error when using the compatibility layer 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. --- diff --git a/src/quic_ssl.c b/src/quic_ssl.c index f004825202..ca9fb86d7a 100644 --- a/src/quic_ssl.c +++ b/src/quic_ssl.c @@ -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 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 . This creates the tasklet * used to process received packets. The allocated context is stored in