diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-21 12:10:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-21 12:10:59 +0100 |
commit | b212e765ad521f685bb6817e9b65b19a51d9a933 (patch) | |
tree | 9ec1059eadd8e5bf925e32e801ffbddee7f239d0 /src/rspamadm | |
parent | b4389fd12e501a30af0f27693a6ab60bb3c8ad3e (diff) | |
download | rspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.tar.gz rspamd-b212e765ad521f685bb6817e9b65b19a51d9a933.zip |
[Feature] Allow catena encrypted passwords in controller
Diffstat (limited to 'src/rspamadm')
-rw-r--r-- | src/rspamadm/pw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamadm/pw.c b/src/rspamadm/pw.c index b11b671f7..ff0185024 100644 --- a/src/rspamadm/pw.c +++ b/src/rspamadm/pw.c @@ -98,7 +98,7 @@ rspamadm_pw_encrypt (void) ottery_rand_bytes (salt, pbkdf->salt_len); /* Derive key */ rspamd_cryptobox_pbkdf (password, strlen (password), - salt, pbkdf->salt_len, key, pbkdf->key_len, pbkdf->rounds); + salt, pbkdf->salt_len, key, pbkdf->key_len, pbkdf->complexity); encoded_salt = rspamd_encode_base32 (salt, pbkdf->salt_len); encoded_key = rspamd_encode_base32 (key, pbkdf->key_len); @@ -213,7 +213,7 @@ rspamadm_pw_check (void) local_key = g_alloca (pbkdf->key_len); rspamd_cryptobox_pbkdf (test_password, plen, salt_decoded, salt_len, - local_key, pbkdf->key_len, pbkdf->rounds); + local_key, pbkdf->key_len, pbkdf->complexity); rspamd_explicit_memzero (test_password, plen); if (!rspamd_constant_memcmp (key_decoded, local_key, pbkdf->key_len)) { |