From 31fe308accd5949e9d0d94dfbbd471be2b3a1c08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 11 May 2022 10:56:07 +0200 Subject: [PATCH] CLEANUP: quic_tls: QUIC_TLS_IV_LEN defined two times Hopefully with the same value! --- include/haproxy/quic_tls-t.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/haproxy/quic_tls-t.h b/include/haproxy/quic_tls-t.h index 693bc4f72..646fa6294 100644 --- a/include/haproxy/quic_tls-t.h +++ b/include/haproxy/quic_tls-t.h @@ -41,6 +41,8 @@ #define QUIC_TLS_IV_LEN 12 /* bytes */ #define QUIC_TLS_KEY_LEN 32 /* bytes */ #define QUIC_TLS_SECRET_LEN 64 /* bytes */ +/* The ciphersuites for AEAD QUIC-TLS have 16-bytes authentication tags */ +#define QUIC_TLS_TAG_LEN 16 /* bytes */ /* The TLS extensions for QUIC transport parameters */ #define TLS_EXTENSION_QUIC_TRANSPORT_PARAMETERS 0x0039 @@ -86,12 +88,6 @@ enum quic_tls_pktns { QUIC_TLS_PKTNS_MAX, }; -/* The ciphersuites for AEAD QUIC-TLS have 16-bytes authentication tags and - * 12 bytes for IVs. - */ -#define QUIC_TLS_TAG_LEN 16 -#define QUIC_TLS_IV_LEN 12 - extern unsigned char initial_salt[20]; /* Key phase used for Key Update */ -- 2.47.3