/*
- * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
+ * Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
*/
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;