diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-09 17:46:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-04-09 17:46:25 +0100 |
commit | b8a099632ffc5c8fd84fa44b058acc14d46a7a9b (patch) | |
tree | 0b29b2219e11ddc507836df1bdba1aa4dbfd9404 /src/libcryptobox | |
parent | 1d56cbb68b103ccca36135a53d611d3e3fed4ec9 (diff) | |
download | rspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.tar.gz rspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.zip |
[Feature] Add multiple base32 alphabets for decoding
Diffstat (limited to 'src/libcryptobox')
-rw-r--r-- | src/libcryptobox/keypair.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcryptobox/keypair.c b/src/libcryptobox/keypair.c index 49daba06c..24bd93c0b 100644 --- a/src/libcryptobox/keypair.c +++ b/src/libcryptobox/keypair.c @@ -336,7 +336,7 @@ rspamd_pubkey_from_base32 (const gchar *b32, len = strlen (b32); } - decoded = rspamd_decode_base32 (b32, len, &dlen); + decoded = rspamd_decode_base32 (b32, len, &dlen, RSPAMD_BASE32_DEFAULT); if (decoded == NULL) { return NULL; @@ -736,7 +736,7 @@ rspamd_keypair_from_ucl (const ucl_object_t *obj) dec_len = rspamd_decode_hex_buf (str, ucl_len, target, len); } else { - dec_len = rspamd_decode_base32_buf (str, ucl_len, target, len); + dec_len = rspamd_decode_base32_buf (str, ucl_len, target, len, RSPAMD_BASE32_DEFAULT); } if (dec_len != (gint)len) { @@ -752,7 +752,7 @@ rspamd_keypair_from_ucl (const ucl_object_t *obj) dec_len = rspamd_decode_hex_buf (str, ucl_len, target, len); } else { - dec_len = rspamd_decode_base32_buf (str, ucl_len, target, len); + dec_len = rspamd_decode_base32_buf (str, ucl_len, target, len, RSPAMD_BASE32_DEFAULT); } if (dec_len != (gint)len) { |