mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-08 06:17:26 +00:00
MINOR: protocol: add SSL context to listeners if USE_OPENSSL is defined
This will be needed to accept incoming SSL connections.
This commit is contained in:
parent
dd2f85eb3b
commit
0b8d4d9372
@ -27,6 +27,10 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
|
|
||||||
|
#ifdef USE_OPENSSL
|
||||||
|
#include <openssl/ssl.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <common/config.h>
|
#include <common/config.h>
|
||||||
#include <common/mini-clist.h>
|
#include <common/mini-clist.h>
|
||||||
#include <eb32tree.h>
|
#include <eb32tree.h>
|
||||||
@ -126,6 +130,11 @@ struct listener {
|
|||||||
char *interface; /* interface name or NULL */
|
char *interface; /* interface name or NULL */
|
||||||
int maxseg; /* for TCP, advertised MSS */
|
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 */
|
/* warning: this struct is huge, keep it at the bottom */
|
||||||
struct sockaddr_storage addr; /* the address we listen to */
|
struct sockaddr_storage addr; /* the address we listen to */
|
||||||
struct {
|
struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user