Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic_ssl.c @ 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 | f2925c80401c |
children | 41796b6804d9 |
comparison
equal
deleted
inserted
replaced
9030:172705615d04 | 9031:cd0d6e176908 |
---|---|
555 ngx_log_error(NGX_LOG_INFO, c->log, 0, | 555 ngx_log_error(NGX_LOG_INFO, c->log, 0, |
556 "quic SSL_set_quic_method() failed"); | 556 "quic SSL_set_quic_method() failed"); |
557 return NGX_ERROR; | 557 return NGX_ERROR; |
558 } | 558 } |
559 | 559 |
560 #ifdef SSL_READ_EARLY_DATA_SUCCESS | 560 #ifdef OPENSSL_INFO_QUIC |
561 if (SSL_CTX_get_max_early_data(qc->conf->ssl->ctx)) { | 561 if (SSL_CTX_get_max_early_data(qc->conf->ssl->ctx)) { |
562 SSL_set_quic_early_data_enabled(ssl_conn, 1); | 562 SSL_set_quic_early_data_enabled(ssl_conn, 1); |
563 } | 563 } |
564 #endif | 564 #endif |
565 | 565 |