aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/http.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-02 22:53:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-02 22:53:26 +0000
commitfec4b654dbc8e4fc98984a669b5ff88be5ed0976 (patch)
treebae975d1f23ae9d15683df810ac8f372753441eb /src/libutil/http.h
parentf1718ac5923a555efb0bfcac4c1859e6a9ac87c9 (diff)
downloadrspamd-fec4b654dbc8e4fc98984a669b5ff88be5ed0976.tar.gz
rspamd-fec4b654dbc8e4fc98984a669b5ff88be5ed0976.zip
Use keypairs cache.
Diffstat (limited to 'src/libutil/http.h')
-rw-r--r--src/libutil/http.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/libutil/http.h b/src/libutil/http.h
index 59ac5ef20..1c79fb45c 100644
--- a/src/libutil/http.h
+++ b/src/libutil/http.h
@@ -33,6 +33,7 @@
#include "config.h"
#include "http_parser.h"
+#include "keypairs_cache.h"
enum rspamd_http_connection_type {
RSPAMD_HTTP_SERVER,
@@ -109,6 +110,7 @@ struct rspamd_http_connection {
rspamd_http_body_handler_t body_handler;
rspamd_http_error_handler_t error_handler;
rspamd_http_finish_handler_t finish_handler;
+ struct rspamd_keypair_cache *cache;
gpointer ud;
unsigned opts;
enum rspamd_http_connection_type type;
@@ -131,6 +133,7 @@ struct rspamd_http_connection_router {
struct timeval tv;
struct timeval *ptv;
struct event_base *ev_base;
+ struct rspamd_keypair_cache *cache;
gchar *default_fs_path;
gpointer key;
rspamd_http_router_error_handler_t error_handler;
@@ -148,7 +151,8 @@ struct rspamd_http_connection * rspamd_http_connection_new (
rspamd_http_error_handler_t error_handler,
rspamd_http_finish_handler_t finish_handler,
unsigned opts,
- enum rspamd_http_connection_type type);
+ enum rspamd_http_connection_type type,
+ struct rspamd_keypair_cache *cache);
/**
* Load the encryption keypair