diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-19 17:56:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-19 17:56:42 +0000 |
commit | 5fe437851dc63bf9c7488d34e434b0e00fd2656a (patch) | |
tree | 9e62e00476e07af7fabb09fd4449446678b518e8 /src/libutil/http_private.h | |
parent | 82b8a0d6ba068fcd65c515872a990e39b566e52d (diff) | |
download | rspamd-5fe437851dc63bf9c7488d34e434b0e00fd2656a.tar.gz rspamd-5fe437851dc63bf9c7488d34e434b0e00fd2656a.zip |
[Project] Adopt librspamdserver for http context
Diffstat (limited to 'src/libutil/http_private.h')
-rw-r--r-- | src/libutil/http_private.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libutil/http_private.h b/src/libutil/http_private.h index df1233d8b..0f8c847a2 100644 --- a/src/libutil/http_private.h +++ b/src/libutil/http_private.h @@ -19,6 +19,8 @@ #include "http_connection.h" #include "http_parser.h" #include "str_util.h" +#include "keypair.h" +#include "keypairs_cache.h" #include "ref.h" #define HASH_CASELESS #include "uthash_strcase.h" @@ -74,6 +76,17 @@ struct rspamd_http_message { ref_entry_t ref; }; +struct rspamd_http_context { + struct rspamd_http_context_cfg config; + struct rspamd_keypair_cache *client_kp_cache; + struct rspamd_cryptobox_keypair *client_kp; + struct rspamd_keypair_cache *server_kp_cache; + gpointer ssl_ctx; + gpointer ssl_ctx_noverify; + struct event_base *ev_base; + struct event client_rotate_ev; +}; + #define HTTP_ERROR http_error_quark () GQuark http_error_quark (void); |