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/libserver/http | |
parent | 1d56cbb68b103ccca36135a53d611d3e3fed4ec9 (diff) | |
download | rspamd-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.c | 2 |
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, |