]> git.kaiwu.me - nginx.git/commitdiff
QUIC: using SSL_set_quic_early_data_enabled() only with QuicTLS.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 20 Oct 2022 12:21:06 +0000 (16:21 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 20 Oct 2022 12:21:06 +0000 (16:21 +0400)
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.

src/event/quic/ngx_event_quic_ssl.c

index aacea02a200bfea085ba9fd32cce22946ab7fee4..bb5809d5872c1e41f9dfc43365f4c508c97e1873 100644 (file)
@@ -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);
     }