#ifndef _COMMON_OPENSSL_COMPAT_H
#define _COMMON_OPENSSL_COMPAT_H
+#ifdef USE_OPENSSL
#include <openssl/bn.h>
#include <openssl/crypto.h>
#define TLS_TICKET_HASH_FUNCT EVP_sha256
#endif /* OPENSSL_NO_SHA256 */
+#endif /* USE_OPENSSL */
#endif /* _COMMON_OPENSSL_COMPAT_H */
#ifndef _PROTO_SSL_SOCK_H
#define _PROTO_SSL_SOCK_H
+#ifdef USE_OPENSSL
+
#include <common/openssl-compat.h>
#include <types/connection.h>
#include <types/proxy.h>
#include <types/stream_interface.h>
+#include <proto/connection.h>
+
extern int sslconns;
extern int totalsslconns;
#define sh_ssl_sess_tree_lookup(k) (struct sh_ssl_sess_hdr *)ebmb_lookup(sh_ssl_sess_tree, \
(k), SSL_MAX_SSL_SESSION_ID_LENGTH);
+#endif /* USE_OPENSSL */
#endif /* _PROTO_SSL_SOCK_H */
/*
#include <netinet/in.h>
#include <arpa/inet.h>
-#ifdef USE_OPENSSL
-#include <common/openssl-compat.h>
-#include <types/ssl_sock.h>
-#endif
-
#include <common/config.h>
#include <common/mini-clist.h>
#include <common/hathreads.h>
+#include <common/openssl-compat.h>
#include <eb32tree.h>
#include <types/obj_type.h>
#include <types/proxy.h>
#include <types/queue.h>
+#include <types/ssl_sock.h>
#include <types/task.h>
#include <types/checks.h>
#ifndef _TYPES_SSL_SOCK_H
#define _TYPES_SSL_SOCK_H
+#ifdef USE_OPENSSL
#include <ebmbtree.h>
unsigned char key_data[SSL_MAX_SSL_SESSION_ID_LENGTH];
};
+#endif /* USE_OPENSSL */
#endif /* _TYPES_SSL_SOCK_H */
#include <proto/session.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/task.h>
-
-#ifdef USE_OPENSSL
#include <proto/ssl_sock.h>
-#endif /* USE_OPENSSL */
+#include <proto/task.h>
int be_lastsession(const struct proxy *be)
{
#include <proto/log.h>
#include <proto/dns.h>
#include <proto/proto_udp.h>
-
-#ifdef USE_OPENSSL
#include <proto/ssl_sock.h>
-#endif /* USE_OPENSSL */
static int httpchk_expect(struct server *s, int done);
static int tcpcheck_get_step_id(struct check *);
#include <proto/session.h>
#include <proto/stream.h>
#include <proto/server.h>
+#include <proto/ssl_sock.h>
#include <proto/stream_interface.h>
#include <proto/task.h>
#include <proto/proto_udp.h>
-#ifdef USE_OPENSSL
-#include <proto/ssl_sock.h>
-#endif
#define PAYLOAD_PATTERN "<<"
#include <proto/proto_tcp.h>
#include <proto/stream_interface.h>
#include <proto/sample.h>
-
-#ifdef USE_OPENSSL
#include <proto/ssl_sock.h>
-#endif
DECLARE_POOL(pool_head_connection, "connection", sizeof(struct connection));
DECLARE_POOL(pool_head_connstream, "conn_stream", sizeof(struct conn_stream));
#include <common/memory.h>
#include <common/mini-clist.h>
#include <common/namespace.h>
+#include <common/openssl-compat.h>
#include <common/regex.h>
#include <common/standard.h>
#include <common/time.h>
#include <proto/task.h>
#include <proto/dns.h>
#include <proto/vars.h>
-#ifdef USE_OPENSSL
-#include <common/openssl-compat.h>
#include <proto/ssl_sock.h>
-#endif
/* array of init calls for older platforms */
DECLARE_INIT_STAGES;
#include <proto/frontend.h>
#include <proto/log.h>
#include <proto/sample.h>
+#include <proto/ssl_sock.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#ifdef USE_OPENSSL
-#include <proto/ssl_sock.h>
-#endif
struct log_fmt {
char *name;
#include <proto/proxy.h>
#include <proto/sample.h>
#include <proto/session.h>
+#include <proto/ssl_sock.h>
#include <proto/stream.h>
#include <proto/server.h>
#include <proto/raw_sock.h>
#include <proto/stream_interface.h>
#include <proto/task.h>
-#ifdef USE_OPENSSL
-#include <proto/ssl_sock.h>
-#include <types/ssl_sock.h>
-#endif
-
/* status codes available for the stats admin page (strictly 4 chars length) */
const char *stat_status_codes[STAT_STATUS_SIZE] = {