diff options
author | Roman Arutyunyan <arut@nginx.com> | 2020-11-11 19:39:23 +0000 |
---|---|---|
committer | Roman Arutyunyan <arut@nginx.com> | 2020-11-11 19:39:23 +0000 |
commit | fc5a0886659187c88e5d26f2732239eafffb320e (patch) | |
tree | b12c24ce4c9a4d436e229a5bd20c0742cfdd45a2 /src | |
parent | db7fbc4d04d678c16500d4453df88f471ff27c61 (diff) | |
download | nginx-fc5a0886659187c88e5d26f2732239eafffb320e.tar.gz nginx-fc5a0886659187c88e5d26f2732239eafffb320e.zip |
QUIC: added quic_stateless_reset_token_key Stream directive.
A similar directive is already available in HTTP.
Diffstat (limited to 'src')
-rw-r--r-- | src/stream/ngx_stream_quic_module.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_quic_module.c b/src/stream/ngx_stream_quic_module.c index 49b1a6f85..fc767e991 100644 --- a/src/stream/ngx_stream_quic_module.c +++ b/src/stream/ngx_stream_quic_module.c @@ -126,6 +126,13 @@ static ngx_command_t ngx_stream_quic_commands[] = { offsetof(ngx_quic_conf_t, retry), NULL }, + { ngx_string("quic_stateless_reset_token_key"), + NGX_STREAM_MAIN_CONF|NGX_STREAM_SRV_CONF|NGX_CONF_FLAG, + ngx_conf_set_str_slot, + NGX_STREAM_SRV_CONF_OFFSET, + offsetof(ngx_quic_conf_t, sr_token_key), + NULL }, + ngx_null_command }; @@ -223,6 +230,7 @@ ngx_stream_quic_create_srv_conf(ngx_conf_t *cf) * conf->tp.retry_scid = { 0, NULL }; * conf->tp.stateless_reset_token = { 0 } * conf->tp.preferred_address = NULL + * conf->sr_token_key = { 0, NULL } * conf->require_alpn = 0; */ @@ -304,6 +312,8 @@ ngx_stream_quic_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child) } } + ngx_conf_merge_str_value(conf->sr_token_key, prev->sr_token_key, ""); + scf = ngx_stream_conf_get_module_srv_conf(cf, ngx_stream_ssl_module); conf->ssl = &scf->ssl; |