diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-09 17:13:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-09 17:13:12 +0100 |
commit | c2351037b581724ce6d6cbcf4da5a0115b87c8de (patch) | |
tree | d55bd57d8bda456308b21cba7827fb2e2fc272a0 /src/rspamadm | |
parent | f5c0d7116e373fa48ab465e8d8dcae1ddaf44932 (diff) | |
download | rspamd-c2351037b581724ce6d6cbcf4da5a0115b87c8de.tar.gz rspamd-c2351037b581724ce6d6cbcf4da5a0115b87c8de.zip |
[Feature] Support multiple base32 alphabets
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 0fea5c359..7fe9d4a33 100644 --- a/src/rspamadm/pw.c +++ b/src/rspamadm/pw.c @@ -134,8 +134,8 @@ rspamadm_pw_encrypt (char *password) salt, pbkdf->salt_len, key, pbkdf->key_len, pbkdf->complexity, pbkdf->type); - encoded_salt = rspamd_encode_base32 (salt, pbkdf->salt_len); - encoded_key = rspamd_encode_base32 (key, pbkdf->key_len); + encoded_salt = rspamd_encode_base32 (salt, pbkdf->salt_len, RSPAMD_BASE32_DEFAULT); + encoded_key = rspamd_encode_base32 (key, pbkdf->key_len, RSPAMD_BASE32_DEFAULT); result = g_string_new (""); rspamd_printf_gstring (result, "$%d$%s$%s", pbkdf->id, encoded_salt, |