Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547)
/* Inclusive range for handshake-specific errors. */
# define QUIC_ERR_CRYPTO_ERR_BEGIN 0x0100
-# define QUUC_ERR_CRYPTO_ERR_END 0x01FF
+# define QUIC_ERR_CRYPTO_ERR_END 0x01FF
+
+# define QUIC_ERR_CRYPTO_ERR(X) \
+ (QUIC_ERR_CRYPTO_ERR_BEGIN + (X))
+
+# define QUIC_ERR_CRYPTO_MISSING_EXT \
+ QUIC_ERR_CRYPTO_ERR(TLS13_AD_MISSING_EXTENSION)
# endif
* Was not a valid QUIC handshake if we did not get valid transport
* params.
*/
- ossl_quic_channel_raise_protocol_error(ch, QUIC_ERR_PROTOCOL_VIOLATION,
+ ossl_quic_channel_raise_protocol_error(ch, QUIC_ERR_CRYPTO_MISSING_EXT,
OSSL_QUIC_FRAME_TYPE_CRYPTO,
"no transport parameters received");
return 0;