mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-25 07:00:42 +00:00
MINOR: server: add SSL context to servers if USE_OPENSSL is defined
This will be needed to accept outgoing SSL connections.
This commit is contained in:
parent
0b8d4d9372
commit
c6545acee0
@ -25,6 +25,10 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.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>
|
||||||
@ -164,6 +168,12 @@ struct server {
|
|||||||
struct connection *check_conn; /* connection state for health checks */
|
struct connection *check_conn; /* connection state for health checks */
|
||||||
int check_data_len; /* length of partial check results stored in check_data */
|
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 {
|
struct {
|
||||||
const char *file; /* file where the section appears */
|
const char *file; /* file where the section appears */
|
||||||
int line; /* line where the section appears */
|
int line; /* line where the section appears */
|
||||||
|
Loading…
Reference in New Issue
Block a user