]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: connection: add a new handshake flag for SSL (CO_FL_SSL_WAIT_HS).
authorEmeric Brun <ebrun@exceliance.fr>
Fri, 18 May 2012 13:47:34 +0000 (15:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Sep 2012 18:49:14 +0000 (20:49 +0200)
This flag is part of the CO_FL_HANDSHAKE family since the SSL handshake
may appear at any time.

include/types/connection.h

index 519eb70c61d2df85e4e0adea8d89d306d5f10329..711abf002d324f0beec3b9f633218419fc068088 100644 (file)
@@ -79,10 +79,11 @@ enum {
 
        /* flags below are used for connection handshakes */
        CO_FL_SI_SEND_PROXY = 0x00000020,  /* send a valid PROXY protocol header */
+       CO_FL_SSL_WAIT_HS   = 0x00000040,  /* wait for an SSL handshake to complete */
        CO_FL_ACCEPT_PROXY  = 0x00000080,  /* send a valid PROXY protocol header */
 
        /* below we have all handshake flags grouped into one */
-       CO_FL_HANDSHAKE     = CO_FL_SI_SEND_PROXY | CO_FL_ACCEPT_PROXY,
+       CO_FL_HANDSHAKE     = CO_FL_SI_SEND_PROXY | CO_FL_SSL_WAIT_HS | CO_FL_ACCEPT_PROXY,
 
        CO_FL_INIT_SESS     = 0x00000800,  /* initialize a session before using data */