mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-09 18:42:40 +02:00
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.
This commit is contained in:
@@ -674,6 +674,8 @@ int quic_set_app_ops(struct quic_conn *qc, const unsigned char *alpn, size_t alp
|
||||
int qc_check_dcid(struct quic_conn *qc, unsigned char *dcid, size_t dcid_len);
|
||||
int quic_get_dgram_dcid(unsigned char *buf, const unsigned char *end,
|
||||
unsigned char **dcid, size_t *dcid_len);
|
||||
struct quic_cid quic_derive_cid(const struct quic_cid *orig,
|
||||
const struct sockaddr_storage *addr);
|
||||
int qc_send_mux(struct quic_conn *qc, struct list *frms);
|
||||
|
||||
void qc_notify_close(struct quic_conn *qc);
|
||||
|
||||
Reference in New Issue
Block a user