Mercurial > hg > nginx
changeset 9031:cd0d6e176908 quic
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 20 Oct 2022 16:21:06 +0400 |
parents | 172705615d04 |
children | 41796b6804d9 |
files | src/event/quic/ngx_event_quic_ssl.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/quic/ngx_event_quic_ssl.c Thu Oct 20 16:21:05 2022 +0400 +++ b/src/event/quic/ngx_event_quic_ssl.c Thu Oct 20 16:21:06 2022 +0400 @@ -557,7 +557,7 @@ 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); }