comparison 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
comparison
equal deleted inserted replaced
8677:c57b6fc90f90 8678:3443ee341cc1
121 static ngx_int_t ngx_quic_parse_transport_param(u_char *p, u_char *end, 121 static ngx_int_t ngx_quic_parse_transport_param(u_char *p, u_char *end,
122 uint16_t id, ngx_quic_tp_t *dst); 122 uint16_t id, ngx_quic_tp_t *dst);
123 123
124 124
125 uint32_t ngx_quic_versions[] = { 125 uint32_t ngx_quic_versions[] = {
126 #if (NGX_QUIC_DRAFT_VERSION >= 29) 126 #if (NGX_QUIC_DRAFT_VERSION >= 33)
127 /* pretend we support all versions in range draft-29..v1 */ 127 /* QUICv1 */
128 0x00000001,
129 NGX_QUIC_VERSION(33),
130 #elif (NGX_QUIC_DRAFT_VERSION >= 29)
128 NGX_QUIC_VERSION(29), 131 NGX_QUIC_VERSION(29),
129 NGX_QUIC_VERSION(30), 132 NGX_QUIC_VERSION(30),
130 NGX_QUIC_VERSION(31), 133 NGX_QUIC_VERSION(31),
131 NGX_QUIC_VERSION(32), 134 NGX_QUIC_VERSION(32),
132 /* QUICv1 */
133 0x00000001
134 #else 135 #else
135 NGX_QUIC_VERSION(NGX_QUIC_DRAFT_VERSION) 136 NGX_QUIC_VERSION(NGX_QUIC_DRAFT_VERSION)
136 #endif 137 #endif
137 }; 138 };
138 139