diff options
author | Hugo Landau <hlandau@openssl.org> | 2023-07-25 11:32:24 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2023-08-08 14:33:42 +0100 |
commit | 3ad5711e484736c7383b43d03f83e5700e589dfa (patch) | |
tree | 10f7892ba360a8fde3b804417c75d78fce014cca /include | |
parent | c5cb85b6651256fcdd0cf15c14f4d082f73c1abb (diff) |
QUIC CHANNEL: Send correct alert code if no TPARAMs received
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21547)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_error.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/internal/quic_error.h b/include/internal/quic_error.h index eeda72a472..0d5c6b4529 100644 --- a/include/internal/quic_error.h +++ b/include/internal/quic_error.h @@ -35,7 +35,13 @@ /* 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 |