]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: server: add SSL context to servers if USE_OPENSSL is defined
authorEmeric Brun <ebrun@exceliance.fr>
Fri, 18 May 2012 13:46:21 +0000 (15:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Sep 2012 18:49:14 +0000 (20:49 +0200)
This will be needed to accept outgoing SSL connections.

include/types/server.h

index 689441ce4910a70f929285194db4786d3464aadf..b009e1bad47adb09b273f25663d18392060696f6 100644 (file)
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
+#ifdef USE_OPENSSL
+#include <openssl/ssl.h>
+#endif
+
 #include <common/config.h>
 #include <common/mini-clist.h>
 #include <eb32tree.h>
@@ -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 */