From 25a7b15144ffbc9b8e941b7c71088a37cbe690b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 21 Jun 2023 16:50:33 +0200 Subject: [PATCH] MINOR: quic: Add a pool for the QUIC TLS encryption levels Very simple patch to define and declare a pool for the QUIC TLS encryptions levels. It will be used to dynamically allocate such objects to be attached to the QUIC connection object (quic_conn struct) and to remove from quic_conn struct the static array of encryption levels (see ->els[]). --- include/haproxy/quic_tls-t.h | 1 + src/quic_tls.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/haproxy/quic_tls-t.h b/include/haproxy/quic_tls-t.h index c226f1bb3..b871c904f 100644 --- a/include/haproxy/quic_tls-t.h +++ b/include/haproxy/quic_tls-t.h @@ -53,6 +53,7 @@ #define TLS_EXTENSION_QUIC_TRANSPORT_PARAMETERS_DRAFT 0xffa5 extern struct pool_head *pool_head_quic_pktns; +extern struct pool_head *pool_head_quic_enc_level; extern struct pool_head *pool_head_quic_tls_secret; extern struct pool_head *pool_head_quic_tls_iv; extern struct pool_head *pool_head_quic_tls_key; diff --git a/src/quic_tls.c b/src/quic_tls.c index 592a10613..99cd50589 100644 --- a/src/quic_tls.c +++ b/src/quic_tls.c @@ -12,6 +12,7 @@ #include +DECLARE_POOL(pool_head_quic_enc_level, "quic_enc_level", sizeof(struct quic_enc_level)); DECLARE_POOL(pool_head_quic_pktns, "quic_pktns", sizeof(struct quic_pktns)); DECLARE_POOL(pool_head_quic_tls_secret, "quic_tls_secret", QUIC_TLS_SECRET_LEN); DECLARE_POOL(pool_head_quic_tls_iv, "quic_tls_iv", QUIC_TLS_IV_LEN); -- 2.47.3