diff options
| author | Sergey Kandaurov <pluknet@nginx.com> | 2021-02-19 17:27:19 +0300 |
|---|---|---|
| committer | Sergey Kandaurov <pluknet@nginx.com> | 2021-02-19 17:27:19 +0300 |
| commit | be98da0731a1c9cf24088d0b8f9a2137f3b91cfa (patch) | |
| tree | cdc716e5bdb65d3492ba672df4460d6f47734b15 /src/event/quic/ngx_event_quic.c | |
| parent | cd276b5ed6f19d39d0e5e3ca615a31931c1f7ddf (diff) | |
| download | nginx-be98da0731a1c9cf24088d0b8f9a2137f3b91cfa.tar.gz nginx-be98da0731a1c9cf24088d0b8f9a2137f3b91cfa.tar.bz2 | |
QUIC: multiple versions support.
Draft-29 and beyond are now supported simultaneously, no need to recompile.
Diffstat (limited to 'src/event/quic/ngx_event_quic.c')
| -rw-r--r-- | src/event/quic/ngx_event_quic.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c index e6ad61083..1cb9e276c 100644 --- a/src/event/quic/ngx_event_quic.c +++ b/src/event/quic/ngx_event_quic.c @@ -1234,7 +1234,8 @@ ngx_quic_new_connection(ngx_connection_t *c, ngx_quic_conf_t *conf, qc->server_seqnum = NGX_QUIC_UNSET_PN; - if (ngx_quic_keys_set_initial_secret(c->pool, qc->keys, &pkt->dcid) + if (ngx_quic_keys_set_initial_secret(c->pool, qc->keys, &pkt->dcid, + qc->version) != NGX_OK) { return NULL; @@ -2611,7 +2612,8 @@ ngx_quic_send_early_cc(ngx_connection_t *c, ngx_quic_header_t *inpkt, return NGX_ERROR; } - if (ngx_quic_keys_set_initial_secret(c->pool, pkt.keys, &inpkt->dcid) + if (ngx_quic_keys_set_initial_secret(c->pool, pkt.keys, &inpkt->dcid, + inpkt->version) != NGX_OK) { return NGX_ERROR; |
