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/libutil/str_util.h | |
parent | 1d56cbb68b103ccca36135a53d611d3e3fed4ec9 (diff) | |
download | rspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.tar.gz rspamd-b8a099632ffc5c8fd84fa44b058acc14d46a7a9b.zip |
[Feature] Add multiple base32 alphabets for decoding
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 1d2a66841..3a794bcc0 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -180,7 +180,7 @@ gchar *rspamd_encode_base32 (const guchar *in, gsize inlen, * @param inlen input length * @return freshly allocated base32 decoded value or NULL if input is invalid */ -guchar *rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen); +guchar *rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen, enum rspamd_base32_type type); /** * Encode string using base32 encoding @@ -201,8 +201,8 @@ gint rspamd_encode_base32_buf (const guchar *in, gsize inlen, gchar *out, * @param outlen output buf len * @return decoded len if in is valid base32 and `outlen` is enough to encode `inlen` */ -gint rspamd_decode_base32_buf (const gchar *in, gsize inlen, - guchar *out, gsize outlen); +gint rspamd_decode_base32_buf (const gchar *in, gsize inlen, guchar *out, + gsize outlen, enum rspamd_base32_type type); /** * Encode string using hex encoding |