aboutsummaryrefslogtreecommitdiffstats
path: root/src/rspamd.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-21 12:10:59 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-21 12:10:59 +0100
commitb212e765ad521f685bb6817e9b65b19a51d9a933 (patch)
tree9ec1059eadd8e5bf925e32e801ffbddee7f239d0 /src/rspamd.h
parentb4389fd12e501a30af0f27693a6ab60bb3c8ad3e (diff)
downloadrspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.tar.gz
rspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.zip
[Feature] Allow catena encrypted passwords in controller
Diffstat (limited to 'src/rspamd.h')
-rw-r--r--src/rspamd.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/rspamd.h b/src/rspamd.h
index a677f02c7..52838a950 100644
--- a/src/rspamd.h
+++ b/src/rspamd.h
@@ -85,8 +85,9 @@ struct rspamd_worker_signal_handler {
};
struct rspamd_controller_pbkdf {
+ enum rspamd_cryptobox_pbkdf_type type;
gint id;
- guint rounds;
+ guint complexity;
gsize salt_len;
gsize key_len;
};
@@ -291,9 +292,15 @@ void register_custom_controller_command (const gchar *name,
gboolean privilleged,
gboolean require_message);
-#define RSPAMD_PBKDF_ID_V1 1
+enum rspamd_pbkdf_version_id {
+ RSPAMD_PBKDF_ID_V1 = 1,
+ RSPAMD_PBKDF_ID_V2= 2,
+ RSPAMD_PBKDF_ID_MAX
+};
+
extern const struct rspamd_controller_pbkdf pbkdf_list[];
+
#endif
/*