diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-23 17:31:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-23 17:31:59 +0100 |
commit | ccea0a6fec04716e6ed162b314bf65f2f3205554 (patch) | |
tree | b309b3294aecc310f5f2dd1d8df6cb1634d0639b /src/plugins/surbl.h | |
parent | 585b2533219a21972200acbeb11289ec83ffe946 (diff) | |
download | rspamd-ccea0a6fec04716e6ed162b314bf65f2f3205554.tar.gz rspamd-ccea0a6fec04716e6ed162b314bf65f2f3205554.zip |
[Project] Further fixes to maps usage
Diffstat (limited to 'src/plugins/surbl.h')
-rw-r--r-- | src/plugins/surbl.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/src/plugins/surbl.h b/src/plugins/surbl.h deleted file mode 100644 index 9671ac6c1..000000000 --- a/src/plugins/surbl.h +++ /dev/null @@ -1,73 +0,0 @@ -#ifndef RSPAMD_MODULE_SURBL -#define RSPAMD_MODULE_SURBL - -#include "config.h" -#include "multipattern.h" -#include "monitored.h" - -#define DEFAULT_SURBL_WEIGHT 10 -#define DEFAULT_REDIRECTOR_READ_TIMEOUT 5.0 -#define DEFAULT_SURBL_SYMBOL "SURBL_DNS" -#define SURBL_OPTION_NOIP (1 << 0) -#define SURBL_OPTION_RESOLVEIP (1 << 1) -#define SURBL_OPTION_CHECKIMAGES (1 << 2) -#define MAX_LEVELS 10 - -struct surbl_ctx { - struct module_ctx ctx; - guint16 weight; - gdouble read_timeout; - gboolean use_tags; - GList *suffixes; - gchar *metric; - const gchar *redirector_symbol; - GHashTable **exceptions; - GHashTable *whitelist; - void *redirector_map_data; - GHashTable *redirector_tlds; - guint use_redirector; - guint max_redirected_urls; - gint redirector_cbid; - struct upstream_list *redirectors; - rspamd_mempool_t *surbl_pool; -}; - -struct suffix_item { - guint64 magic; - const gchar *monitored_domain; - const gchar *suffix; - const gchar *symbol; - guint32 options; - GArray *bits; - GHashTable *ips; - struct rspamd_monitored *m; - gint callback_id; - gint url_process_cbref; -}; - -struct dns_param { - struct rspamd_url *url; - struct rspamd_task *task; - gchar *host_resolve; - struct suffix_item *suffix; - struct rspamd_async_watcher *w; -}; - -struct redirector_param { - struct rspamd_url *url; - struct rspamd_task *task; - struct upstream *redirector; - struct rspamd_http_connection *conn; - GHashTable *tree; - struct suffix_item *suffix; - struct rspamd_async_watcher *w; - gint sock; - guint redirector_requests; -}; - -struct surbl_bit_item { - guint32 bit; - gchar *symbol; -}; - -#endif |