summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-06-06 16:25:11 +0100
committerPauli <pauli@openssl.org>2023-07-17 08:17:57 +1000
commit5b9452e03797e623681d64a0dae6ed1e2cc99f27 (patch)
tree996326f0c726c88471c6fe8fd59683950cf2b41c /include
parent22f21fbdd6ed7032f28d4f22ef1abc98e1c5d325 (diff)
QUIC WIRE: Allow encoding/decoding of reserved header bits
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/21135)
Diffstat (limited to 'include')
-rw-r--r--include/internal/quic_wire_pkt.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/internal/quic_wire_pkt.h b/include/internal/quic_wire_pkt.h
index 966c012274..b505bc0cf3 100644
--- a/include/internal/quic_wire_pkt.h
+++ b/include/internal/quic_wire_pkt.h
@@ -350,6 +350,14 @@ typedef struct quic_pkt_hdr_st {
*/
unsigned int unused :4;
+ /*
+ * The 'Reserved' bits in an Initial, Handshake, 0-RTT or 1-RTT packet
+ * header's first byte. These are provided so that the caller can validate
+ * that they are zero, as this must be done after packet protection is
+ * successfully removed to avoid creating a timing channel.
+ */
+ unsigned int reserved :2;
+
/* [L] Version field. Valid if (type != 1RTT). */
uint32_t version;