Mercurial > hg > nginx
diff src/event/ngx_event_openssl.c @ 8232:253cf267f95a quic
Moved setting QUIC methods to runtime.
This allows listening to both https and http3 in the same server.
Also, the change eliminates the ssl_quic directive.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 18 Mar 2020 16:37:16 +0300 |
parents | b28ea685a56e |
children | 7f0981be07c4 |
line wrap: on
line diff
--- a/src/event/ngx_event_openssl.c +++ b/src/event/ngx_event_openssl.c @@ -1460,28 +1460,6 @@ ngx_ssl_early_data(ngx_conf_t *cf, ngx_s ngx_int_t -ngx_ssl_quic(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_uint_t enable) -{ - if (!enable) { - return NGX_OK; - } - -#if NGX_OPENSSL_QUIC - - ngx_quic_init_ssl_methods(ssl->ctx); - return NGX_OK; - -#else - - ngx_log_error(NGX_LOG_WARN, ssl->log, 0, - "\"ssl_quic\" is not supported on this platform"); - return NGX_ERROR; - -#endif -} - - -ngx_int_t ngx_ssl_client_session_cache(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_uint_t enable) { if (!enable) {