aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2022-10-20 16:21:06 +0400
committerSergey Kandaurov <pluknet@nginx.com>2022-10-20 16:21:06 +0400
commit1ad1b85feb11285c5b65cc2d53c3f7ec54e6fabd (patch)
tree346bc9ee997ab68e77fdc7f739555a7a2291d55d /src
parent00468d71bf8cdbec28a44c92f59c5edf42d7739c (diff)
downloadnginx-1ad1b85feb11285c5b65cc2d53c3f7ec54e6fabd.tar.gz
nginx-1ad1b85feb11285c5b65cc2d53c3f7ec54e6fabd.zip
QUIC: using SSL_set_quic_early_data_enabled() only with QuicTLS.
This function is present in QuicTLS only. After SSL_READ_EARLY_DATA_SUCCESS became visible in LibreSSL together with experimental QUIC API, this required to revise the conditional compilation test to use more narrow macros.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic_ssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/quic/ngx_event_quic_ssl.c b/src/event/quic/ngx_event_quic_ssl.c
index aacea02a2..bb5809d58 100644
--- a/src/event/quic/ngx_event_quic_ssl.c
+++ b/src/event/quic/ngx_event_quic_ssl.c
@@ -557,7 +557,7 @@ ngx_quic_init_connection(ngx_connection_t *c)
return NGX_ERROR;
}
-#ifdef SSL_READ_EARLY_DATA_SUCCESS
+#ifdef OPENSSL_INFO_QUIC
if (SSL_CTX_get_max_early_data(qc->conf->ssl->ctx)) {
SSL_set_quic_early_data_enabled(ssl_conn, 1);
}