summaryrefslogtreecommitdiffstats
path: root/src/libserver/http
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-09 17:46:25 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-09 17:46:25 +0100
commitb8a099632ffc5c8fd84fa44b058acc14d46a7a9b (patch)
tree0b29b2219e11ddc507836df1bdba1aa4dbfd9404 /src/libserver/http
parent1d56cbb68b103ccca36135a53d611d3e3fed4ec9 (diff)
downloadrspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.tar.gz
rspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.zip
[Feature] Add multiple base32 alphabets for decoding
Diffstat (limited to 'src/libserver/http')
-rw-r--r--src/libserver/http/http_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/http/http_connection.c b/src/libserver/http/http_connection.c
index 28a13f7ba..4e880f216 100644
--- a/src/libserver/http/http_connection.c
+++ b/src/libserver/http/http_connection.c
@@ -155,7 +155,7 @@ rspamd_http_parse_key (rspamd_ftok_t *data, struct rspamd_http_connection *conn,
eq_pos = memchr (data->begin, '=', data->len);
if (eq_pos != NULL) {
decoded_id = rspamd_decode_base32 (data->begin, eq_pos - data->begin,
- &id_len);
+ &id_len, RSPAMD_BASE32_DEFAULT);
if (decoded_id != NULL && id_len >= RSPAMD_KEYPAIR_SHORT_ID_LEN) {
pk = rspamd_pubkey_from_base32 (eq_pos + 1,