From b212e765ad521f685bb6817e9b65b19a51d9a933 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 21 Apr 2016 12:10:59 +0100 Subject: [Feature] Allow catena encrypted passwords in controller --- src/rspamd.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/rspamd.h') 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 /* -- cgit v1.2.3