From 682bb38c34d933f8ab389cc46db1273b036dcba0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 17 Sep 2021 17:08:03 +0200 Subject: [PATCH] MINOR: quic_tls: Client/serveur state reordering This is to ensure that expressions which compare the current state with others are not polluted by the "handshake failed" special state. --- include/haproxy/quic_tls-t.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/haproxy/quic_tls-t.h b/include/haproxy/quic_tls-t.h index 778ec4620..4a793e263 100644 --- a/include/haproxy/quic_tls-t.h +++ b/include/haproxy/quic_tls-t.h @@ -42,13 +42,14 @@ /* QUIC handshake states for both clients and servers. */ enum quic_handshake_state { + QUIC_HS_ST_CLIENT_HANDSHAKE_FAILED, + QUIC_HS_ST_SERVER_HANDSHAKE_FAILED, + QUIC_HS_ST_CLIENT_INITIAL, QUIC_HS_ST_CLIENT_HANDSHAKE, - QUIC_HS_ST_CLIENT_HANDSHAKE_FAILED, QUIC_HS_ST_SERVER_INITIAL, QUIC_HS_ST_SERVER_HANDSHAKE, - QUIC_HS_ST_SERVER_HANDSHAKE_FAILED, /* Common to servers and clients */ QUIC_HS_ST_COMPLETE,