MINOR: quic: remove return val of quic_aead_iv_build()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 16 May 2023 16:11:01 +0000 (18:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 22 May 2023 09:17:18 +0000 (11:17 +0200)
commit5eadc27623fb68c14a4217c4567bcc78cc5deddd
treee4376c24ba439d19a3e17dd0d560f00bb167d478
parent8d6d246dbc30ec19d3fe0655fb72638e790b1c6b
MINOR: quic: remove return val of quic_aead_iv_build()

quic_aead_iv_build() should never fail unless we call it with buffers of
different size. This never happens in the code as every input buffers
are of size QUIC_TLS_IV_LEN.

Remove the return value and add a BUG_ON() to prevent future misusage.
This is especially useful to remove one error handling on the sending
patch via quic_packet_encrypt().

This should be backported up to 2.7.
include/haproxy/quic_tls.h
src/quic_conn.c
src/quic_tls.c