From: Emeric Brun Date: Fri, 18 May 2012 13:46:21 +0000 (+0200) Subject: MINOR: protocol: add SSL context to listeners if USE_OPENSSL is defined X-Git-Tag: v1.5-dev12~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0b8d4d9372f8646747fb66775cbdde4b1ef4890f;p=thirdparty%2Fhaproxy.git MINOR: protocol: add SSL context to listeners if USE_OPENSSL is defined This will be needed to accept incoming SSL connections. --- diff --git a/include/types/protocols.h b/include/types/protocols.h index 275122fcbd..c6073b4d21 100644 --- a/include/types/protocols.h +++ b/include/types/protocols.h @@ -27,6 +27,10 @@ #include #include +#ifdef USE_OPENSSL +#include +#endif + #include #include #include @@ -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 {