From: Emeric Brun Date: Fri, 18 May 2012 13:46:21 +0000 (+0200) Subject: MINOR: server: add SSL context to servers if USE_OPENSSL is defined X-Git-Tag: v1.5-dev12~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6545acee08423e481dd1d95ddc8c7662119c03e;p=thirdparty%2Fhaproxy.git MINOR: server: add SSL context to servers if USE_OPENSSL is defined This will be needed to accept outgoing SSL connections. --- diff --git a/include/types/server.h b/include/types/server.h index 689441ce49..b009e1bad4 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -25,6 +25,10 @@ #include #include +#ifdef USE_OPENSSL +#include +#endif + #include #include #include @@ -164,6 +168,12 @@ struct server { struct connection *check_conn; /* connection state for health checks */ int check_data_len; /* length of partial check results stored in check_data */ +#ifdef USE_OPENSSL + struct { + SSL_CTX *ctx; + SSL_SESSION *reused_sess; + } ssl_ctx; +#endif struct { const char *file; /* file where the section appears */ int line; /* line where the section appears */