diff src/event/quic/ngx_event_quic_transport.c @ 8678:3443ee341cc1 quic

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.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 11 Jan 2021 15:25:48 +0300
parents 7df607cb2d11
children 0697294f79a4
line wrap: on
line diff
--- 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_transpor
 
 
 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