diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-21 09:18:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-03-21 09:18:36 +0000 |
commit | 81a563991ffb0c37c9a30c660a5f20f413fb3b92 (patch) | |
tree | 1a32a07668405fc001bb592680b164def88505e2 /src/libutil/map_private.h | |
parent | 7181e8d455ca626c05e85160f2ac1b0f9cb129b2 (diff) | |
download | rspamd-81a563991ffb0c37c9a30c660a5f20f413fb3b92.tar.gz rspamd-81a563991ffb0c37c9a30c660a5f20f413fb3b92.zip |
[Feature] Allow base32 keys in maps
Diffstat (limited to 'src/libutil/map_private.h')
-rw-r--r-- | src/libutil/map_private.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/libutil/map_private.h b/src/libutil/map_private.h index 4350283c7..c26517574 100644 --- a/src/libutil/map_private.h +++ b/src/libutil/map_private.h @@ -72,6 +72,13 @@ struct http_map_data { gboolean request_sent; }; +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 +}; struct http_callback_data { struct event_base *ev_base; @@ -84,13 +91,7 @@ struct http_callback_data { struct rspamd_cryptobox_pubkey *pk; gchar *tmpfile; - enum { - map_resolve_host2 = 0, /* 2 requests sent */ - map_resolve_host1, /* 1 requests sent */ - map_load_file, - map_load_pubkey, - map_load_signature - } stage; + enum rspamd_map_http_stage stage; gint out_fd; gint fd; |