]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: Make ->set_encryption_secrets() be callable two times
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 6 Jun 2023 15:40:41 +0000 (17:40 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 21 Jul 2023 13:54:31 +0000 (15:54 +0200)
commit91f1950ed665a8f3a33adcaa0904f0fdb5b07ad1
tree3bf3d675ad8fbc5789b8464042ec470ec586d896
parente3991e03cc43838bb40006caa512fd05bf6bbb7e
MINOR: quic: Make ->set_encryption_secrets() be callable two times

With this patch, ha_set_encryption_secrets() may be callable two times,
one time to derive the RX secrets and a second time to derive the TX secrets.

There was a missing step to do so when the RX secret was received from the stack.
In this case the secret was not stored for the keyupdate, leading the keyupdate
RX part to be uninitialized.

Add a label to initialize the keyupdate RX part and a "goto" statement to run
the concerned code after having derived the RX secrets.

This patch is required to make the keupdate feature work with the OpenSSL wrapper.

Must be backported as far as 2.6.
src/quic_conn.c