mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 15:12:11 +00:00
f4605748f4
Add ->ctx new member field to quic_tls_secrets struct to store the cipher context for each QUIC TLS context TX/RX parts. Add quic_tls_rx_ctx_init() and quic_tls_tx_ctx_init() functions to initialize these cipher context for RX and TX parts respectively. Make qc_new_isecs() call these two functions to initialize the cipher contexts of the Initial secrets. Same thing for ha_quic_set_encryption_secrets() to initialize the cipher contexts of the subsequent derived secrets (ORTT, Handshake, 1RTT). Modify quic_tls_decrypt() and quic_tls_encrypt() to always use the same cipher context without allocating it each time they are called. |
||
---|---|---|
.. | ||
haproxy | ||
import |