comparison src/event/quic/ngx_event_quic_ssl.c @ 8865:646bb5361437 quic

Configure: check for QUIC 0-RTT support at compile time.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 27 Sep 2021 10:10:37 +0300
parents 4df9795fb77f
children 66b4ff373dd9
comparison
equal deleted inserted replaced
8864:ea9b645472b5 8865:646bb5361437
547 ngx_log_error(NGX_LOG_INFO, c->log, 0, 547 ngx_log_error(NGX_LOG_INFO, c->log, 0,
548 "quic SSL_set_quic_transport_params() failed"); 548 "quic SSL_set_quic_transport_params() failed");
549 return NGX_ERROR; 549 return NGX_ERROR;
550 } 550 }
551 551
552 #if (NGX_OPENSSL_QUIC_ZRTT_CTX) 552 #if BORINGSSL_API_VERSION >= 11
553 if (SSL_set_quic_early_data_context(ssl_conn, p, clen) == 0) { 553 if (SSL_set_quic_early_data_context(ssl_conn, p, clen) == 0) {
554 ngx_log_error(NGX_LOG_INFO, c->log, 0, 554 ngx_log_error(NGX_LOG_INFO, c->log, 0,
555 "quic SSL_set_quic_early_data_context() failed"); 555 "quic SSL_set_quic_early_data_context() failed");
556 return NGX_ERROR; 556 return NGX_ERROR;
557 } 557 }