MINOR: quic: extend return value during TP parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 May 2025 16:10:27 +0000 (18:10 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 May 2025 16:08:57 +0000 (18:08 +0200)
commitd3cd891e5afbde8f9ad301a459b6a292deb3cf96
treed11b10c9bdd226cbe0590fa3a8562eb4eda98f6f
parentcc0e617734165b31b2bb53403746c95daaf4296d
MINOR: quic: extend return value during TP parsing

Extend API used for QUIC transport parameter decoding. This is done via
the introduction of a dedicated enum to report the various error
condition detected. No functional change should occur with this patch,
as the only returned code is QUIC_TP_DEC_ERR_TRUNC, which results in the
connection closure via a TLS alert.

This patch will be necessary to properly reject transport parameters
with the proper CONNECTION_CLOSE error code. As such, it should be
backported up to 2.6 with the following series.

(cherry picked from commit 294bf26c06404e35edd4ad3381ccb26e835bd7a1)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit f5a5564f65da6190e1cf4a7c92a1610c2fe03caf)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
include/haproxy/quic_tp-t.h
src/quic_ssl.c
src/quic_tp.c