mirror of
https://github.com/nginx/nginx.git
synced 2024-11-21 16:28:40 +00:00
Configure: check for QUIC 0-RTT support at compile time.
This commit is contained in:
parent
2cd173d450
commit
8ce1c2c7e9
@ -165,13 +165,4 @@ with nginx by using --with-openssl=<path> option.
|
|||||||
END
|
END
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ngx_feature="OpenSSL QUIC 0-RTT context"
|
|
||||||
ngx_feature_name="NGX_OPENSSL_QUIC_ZRTT_CTX"
|
|
||||||
ngx_feature_run=no
|
|
||||||
ngx_feature_incs="#include <openssl/ssl.h>"
|
|
||||||
ngx_feature_path=
|
|
||||||
ngx_feature_libs="-lssl -lcrypto $NGX_LIBDL $NGX_LIBPTHREAD"
|
|
||||||
ngx_feature_test="SSL_set_quic_early_data_context(NULL, NULL, 0)"
|
|
||||||
. auto/feature
|
|
||||||
fi
|
fi
|
||||||
|
@ -549,7 +549,7 @@ ngx_quic_init_connection(ngx_connection_t *c)
|
|||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (NGX_OPENSSL_QUIC_ZRTT_CTX)
|
#if BORINGSSL_API_VERSION >= 11
|
||||||
if (SSL_set_quic_early_data_context(ssl_conn, p, clen) == 0) {
|
if (SSL_set_quic_early_data_context(ssl_conn, p, clen) == 0) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"quic SSL_set_quic_early_data_context() failed");
|
"quic SSL_set_quic_early_data_context() failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user