MINOR: quic_tls: Client/serveur state reordering
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 17 Sep 2021 15:08:03 +0000 (17:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
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

index 778ec46..4a793e2 100644 (file)
 
 /* 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,