#include <types/connection.h>
#include <types/listener.h>
#include <types/proxy.h>
+#include <types/ssl_sock.h>
#include <types/stream_interface.h>
#include <proto/connection.h>
#ifdef USE_OPENSSL
#include <common/openssl-compat.h>
-#include <types/ssl_sock.h>
#endif
#include <common/config.h>
#define BC_SSL_O_PREF_CLIE_CIPH 0x0200 /* prefer client ciphers */
#endif
+struct tls_version_filter {
+ uint16_t flags; /* ssl options */
+ uint8_t min; /* min TLS version */
+ uint8_t max; /* max TLS version */
+};
+
/* ssl "bind" settings */
struct ssl_bind_conf {
#ifdef USE_OPENSSL
#include <ebmbtree.h>
#include <eb64tree.h>
+#include <types/connection.h> /* struct wait_event */
#include <types/ssl_ckch.h>
#include <types/ssl_crtlist.h>
struct ebmb_node name; /* node holding the servername value */
};
-struct tls_version_filter {
- uint16_t flags; /* ssl options */
- uint8_t min; /* min TLS version */
- uint8_t max; /* max TLS version */
-};
-
extern struct list tlskeys_reference;
struct tls_sess_key_128 {
char ciphersuite[0];
};
+struct ssl_sock_ctx {
+ struct connection *conn;
+ SSL *ssl;
+ BIO *bio;
+ const struct xprt_ops *xprt;
+ void *xprt_ctx;
+ struct wait_event wait_event;
+ struct wait_event *subs;
+ int xprt_st; /* transport layer state, initialized to zero */
+ struct buffer early_buf; /* buffer to store the early data received */
+ int sent_early_data; /* Amount of early data we sent so far */
+
+};
+
struct global_ssl {
char *crt_base; /* base directory path for certificates */
char *ca_base; /* base directory path for CAs and CRLs */
static BIO_METHOD *ha_meth;
-struct ssl_sock_ctx {
- struct connection *conn;
- SSL *ssl;
- BIO *bio;
- const struct xprt_ops *xprt;
- void *xprt_ctx;
- struct wait_event wait_event;
- struct wait_event *subs;
- int xprt_st; /* transport layer state, initialized to zero */
- struct buffer early_buf; /* buffer to store the early data received */
- int sent_early_data; /* Amount of early data we sent so far */
-
-};
-
DECLARE_STATIC_POOL(ssl_sock_ctx_pool, "ssl_sock_ctx_pool", sizeof(struct ssl_sock_ctx));
static struct task *ssl_sock_io_cb(struct task *, void *, unsigned short);