]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: protocol: add SSL context to listeners 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 incoming SSL connections.

include/types/protocols.h

index 275122fcbd297c97dc2c8601987140eb4be6024f..c6073b4d21d14cc6b6fc416e2f77416dfc024ebe 100644 (file)
 #include <sys/stat.h>
 #include <sys/un.h>
 
+#ifdef USE_OPENSSL
+#include <openssl/ssl.h>
+#endif
+
 #include <common/config.h>
 #include <common/mini-clist.h>
 #include <eb32tree.h>
@@ -126,6 +130,11 @@ struct listener {
        char *interface;                /* interface name or NULL */
        int maxseg;                     /* for TCP, advertised MSS */
 
+#ifdef USE_OPENSSL
+       struct {
+               SSL_CTX *ctx;
+       } ssl_ctx;
+#endif
        /* warning: this struct is huge, keep it at the bottom */
        struct sockaddr_storage addr;   /* the address we listen to */
        struct {