summaryrefslogtreecommitdiffhomepage
path: root/src/http/modules/ngx_http_ssl_module.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2020-03-18 16:37:16 +0300
committerRoman Arutyunyan <arut@nginx.com>2020-03-18 16:37:16 +0300
commit5aa8e519c9fecc00b3a74781716ceb66609c5661 (patch)
tree428b068b5e7fda6f9ffe67fd3fc93d549642b744 /src/http/modules/ngx_http_ssl_module.c
parent50f919cec4a81d8c37d754e0be72283c92954800 (diff)
downloadnginx-5aa8e519c9fecc00b3a74781716ceb66609c5661.tar.gz
nginx-5aa8e519c9fecc00b3a74781716ceb66609c5661.tar.bz2
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.
Diffstat (limited to 'src/http/modules/ngx_http_ssl_module.c')
-rw-r--r--src/http/modules/ngx_http_ssl_module.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/http/modules/ngx_http_ssl_module.c b/src/http/modules/ngx_http_ssl_module.c
index 8640c2211..4b480a006 100644
--- a/src/http/modules/ngx_http_ssl_module.c
+++ b/src/http/modules/ngx_http_ssl_module.c
@@ -249,13 +249,6 @@ static ngx_command_t ngx_http_ssl_commands[] = {
offsetof(ngx_http_ssl_srv_conf_t, early_data),
NULL },
- { ngx_string("ssl_quic"),
- NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_CONF_FLAG,
- ngx_conf_set_flag_slot,
- NGX_HTTP_SRV_CONF_OFFSET,
- offsetof(ngx_http_ssl_srv_conf_t, quic),
- NULL },
-
ngx_null_command
};
@@ -575,7 +568,6 @@ ngx_http_ssl_create_srv_conf(ngx_conf_t *cf)
sscf->enable = NGX_CONF_UNSET;
sscf->prefer_server_ciphers = NGX_CONF_UNSET;
sscf->early_data = NGX_CONF_UNSET;
- sscf->quic = NGX_CONF_UNSET;
sscf->buffer_size = NGX_CONF_UNSET_SIZE;
sscf->verify = NGX_CONF_UNSET_UINT;
sscf->verify_depth = NGX_CONF_UNSET_UINT;
@@ -620,8 +612,6 @@ ngx_http_ssl_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
ngx_conf_merge_value(conf->early_data, prev->early_data, 0);
- ngx_conf_merge_value(conf->quic, prev->quic, 0);
-
ngx_conf_merge_bitmask_value(conf->protocols, prev->protocols,
(NGX_CONF_BITMASK_SET|NGX_SSL_TLSv1
|NGX_SSL_TLSv1_1|NGX_SSL_TLSv1_2));
@@ -867,10 +857,6 @@ ngx_http_ssl_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
return NGX_CONF_ERROR;
}
- if (ngx_ssl_quic(cf, &conf->ssl, conf->quic) != NGX_OK) {
- return NGX_CONF_ERROR;
- }
-
return NGX_CONF_OK;
}