]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Add a pool for the QUIC TLS encryption levels
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 21 Jun 2023 14:50:33 +0000 (16:50 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 30 Jun 2023 14:20:55 +0000 (16:20 +0200)
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
src/quic_tls.c

index c226f1bb30ec5d91f450c9ce5d638f645953f31b..b871c904f2664ebf7c2651a2b025a157bbeb90b7 100644 (file)
@@ -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;
index 592a10613f39e89662769d82c73840ec82711de4..99cd505896e93408f488fbe5dcc0b59d5eb38370 100644 (file)
@@ -12,6 +12,7 @@
 #include <haproxy/quic_conn.h>
 
 
+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);