diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 18:21:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-16 18:21:51 +0100 |
commit | 80bbb6bf904499490d1d7879bbedbf46b0b7632d (patch) | |
tree | 1a62702dd1afcbc35cc23f1697c4bae89ca5e7b6 /src/libutil/map_private.h | |
parent | c558398b7bfb8d5ceb1d4148130f8b39d438833d (diff) | |
download | rspamd-80bbb6bf904499490d1d7879bbedbf46b0b7632d.tar.gz rspamd-80bbb6bf904499490d1d7879bbedbf46b0b7632d.zip |
[Rework] Stop support of signed HTTP maps to simplify code
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r-- | src/libutil/map_private.h | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h index de84322ec..e285c8498 100644 --- a/src/libutil/map_private.h +++ b/src/libutil/map_private.h @@ -95,7 +95,6 @@ struct http_map_data { gchar *path; gchar *host; gchar *rest; - gchar *last_signature; rspamd_fstring_t *etag; time_t last_modified; time_t last_checked; @@ -163,12 +162,10 @@ struct rspamd_map { }; enum rspamd_map_http_stage { - map_resolve_host2 = 0, /* 2 requests sent */ - map_resolve_host1, /* 1 requests sent */ - map_load_file, - map_load_pubkey, - map_load_signature, - map_finished + http_map_resolve_host2 = 0, /* 2 requests sent */ + http_map_resolve_host1, /* 1 requests sent */ + http_map_http_conn, /* http connection */ + http_map_terminated /* terminated when doing resolving */ }; struct map_periodic_cbdata { @@ -195,6 +192,7 @@ struct rspamd_http_file_data { struct http_callback_data { struct ev_loop *event_loop; struct rspamd_http_connection *conn; + GPtrArray *addrs; rspamd_inet_addr_t *addr; struct rspamd_map *map; struct rspamd_map_backend *bk; @@ -202,11 +200,7 @@ struct http_callback_data { struct map_periodic_cbdata *periodic; struct rspamd_cryptobox_pubkey *pk; struct rspamd_storage_shmem *shmem_data; - struct rspamd_storage_shmem *shmem_sig; - struct rspamd_storage_shmem *shmem_pubkey; gsize data_len; - gsize sig_len; - gsize pubkey_len; gboolean check; enum rspamd_map_http_stage stage; ev_tstamp timeout; |