From 7dd0e505ca5d2230a0785dc2159bfa8acfef56c2 Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Fri, 18 May 2012 15:47:34 +0200 Subject: [PATCH] MEDIUM: connection: add a new handshake flag for SSL (CO_FL_SSL_WAIT_HS). This flag is part of the CO_FL_HANDSHAKE family since the SSL handshake may appear at any time. --- include/types/connection.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/types/connection.h b/include/types/connection.h index 519eb70c6..711abf002 100644 --- a/include/types/connection.h +++ b/include/types/connection.h @@ -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 */