From b8a099632ffc5c8fd84fa44b058acc14d46a7a9b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 9 Apr 2020 17:46:25 +0100 Subject: [Feature] Add multiple base32 alphabets for decoding --- src/controller.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/controller.c') diff --git a/src/controller.c b/src/controller.c index 31c353e34..cfea10971 100644 --- a/src/controller.c +++ b/src/controller.c @@ -325,7 +325,7 @@ check_uncached: if (salt != NULL && hash != NULL) { /* decode salt */ - salt_decoded = rspamd_decode_base32 (salt, salt_len, &salt_len); + salt_decoded = rspamd_decode_base32 (salt, salt_len, &salt_len, RSPAMD_BASE32_DEFAULT); if (salt_decoded == NULL || salt_len != pbkdf->salt_len) { /* We have some unknown salt here */ @@ -334,7 +334,7 @@ check_uncached: return FALSE; } - key_decoded = rspamd_decode_base32 (hash, key_len, &key_len); + key_decoded = rspamd_decode_base32 (hash, key_len, &key_len, RSPAMD_BASE32_DEFAULT); if (key_decoded == NULL || key_len != pbkdf->key_len) { /* We have some unknown salt here */ -- cgit v1.2.3