summaryrefslogtreecommitdiffhomepage
path: root/src/event/quic/ngx_event_quic_transport.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2021-01-11 15:25:48 +0300
committerSergey Kandaurov <pluknet@nginx.com>2021-01-11 15:25:48 +0300
commitf3c9e9f9616066c6f1d16b9b1e01b7a3d0e2503a (patch)
tree1a3b877da9af8c667c51a003cd0aecdb6fc3af1a /src/event/quic/ngx_event_quic_transport.c
parent291eb52899b39f3f1a7bfbab4b73abea1efa2c1f (diff)
downloadnginx-f3c9e9f9616066c6f1d16b9b1e01b7a3d0e2503a.tar.gz
nginx-f3c9e9f9616066c6f1d16b9b1e01b7a3d0e2503a.tar.bz2
QUIC: draft-33 salt and retry keys.
Notably, the version negotiation table is updated to reject draft-33/QUICv1 (which requires a new TLS codepoint) unless explicitly asked to built with.
Diffstat (limited to '')
-rw-r--r--src/event/quic/ngx_event_quic_transport.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/event/quic/ngx_event_quic_transport.c b/src/event/quic/ngx_event_quic_transport.c
index b2ae19620..2ecfac5a4 100644
--- a/src/event/quic/ngx_event_quic_transport.c
+++ b/src/event/quic/ngx_event_quic_transport.c
@@ -123,14 +123,15 @@ static ngx_int_t ngx_quic_parse_transport_param(u_char *p, u_char *end,
uint32_t ngx_quic_versions[] = {
-#if (NGX_QUIC_DRAFT_VERSION >= 29)
- /* pretend we support all versions in range draft-29..v1 */
+#if (NGX_QUIC_DRAFT_VERSION >= 33)
+ /* QUICv1 */
+ 0x00000001,
+ NGX_QUIC_VERSION(33),
+#elif (NGX_QUIC_DRAFT_VERSION >= 29)
NGX_QUIC_VERSION(29),
NGX_QUIC_VERSION(30),
NGX_QUIC_VERSION(31),
NGX_QUIC_VERSION(32),
- /* QUICv1 */
- 0x00000001
#else
NGX_QUIC_VERSION(NGX_QUIC_DRAFT_VERSION)
#endif