MINOR: quic: adjust quic CID derive API
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 13 Apr 2023 13:26:18 +0000 (15:26 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 18 Apr 2023 14:20:47 +0000 (16:20 +0200)
commitc2a9264f34ff29c70bf95cdcdff652d2c005cd1e
treed2aa9d5d8288005688605d3e0bd444126e2d31b8
parent1a5cc19cecfa84bfd0fdd7b9d5d20899cce40662
MINOR: quic: adjust quic CID derive API

ODCID are never stored in the CID tree. Instead, we store our generated
CID which is directly derived from the CID using a hash function. This
operation is done via quic_derive_cid().

Previously, generated CID was returned as a 64-bits integer. However,
this is cumbersome to convert as an array of bytes which is the most
common CID representation. Adjust this by modifying return type to a
quic_cid struct.

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