From 59e9b6c204dd384d4acf25bf2521546b78d6afa3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 24 Jan 2024 10:46:11 +0100 Subject: [PATCH] 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. --- src/quic_ssl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/quic_ssl.c b/src/quic_ssl.c index f00482520..ca9fb86d7 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 -- 2.47.3