]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Split the secrets key allocation in two parts
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 16 Sep 2022 14:24:47 +0000 (16:24 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 13 Oct 2022 08:12:03 +0000 (10:12 +0200)
commite1a49cfd4dc58b1923e99931dd507d2945e5ec8e
treeda93c4b25dd8fbe18950a9fba2e2bd1219fb8209
parent4aa7d8197ac565976c2b2eec93a9b98e905829df
MINOR: quic: Split the secrets key allocation in two parts

Implement quic_tls_secrets_keys_alloc()/quic_tls_secrets_keys_free() to allocate
the memory for only one direction (RX or TX).
Modify ha_quic_set_encryption_secrets() to call these functions for one of this
direction (or both). So, for now on we can rely on the value of the secret keys
to know if it was derived.
Remove QUIC_FL_TLS_SECRETS_SET flag which is no more useful.
Consequently, the secrets are dumped by the traces only if derived.

Must be backported to 2.6.
include/haproxy/quic_tls-t.h
include/haproxy/quic_tls.h
src/quic_conn.c
src/quic_loss.c