diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-28 16:21:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-28 16:21:00 +0000 |
commit | 976633feae742845a47aabe70dd93c547ba1876b (patch) | |
tree | 732d744d674876adc8532228b57d1876cd67c034 /src/libutil/util.h | |
parent | 75865261ebd5d2b70048273447c740a1629c89cb (diff) | |
download | rspamd-976633feae742845a47aabe70dd93c547ba1876b.tar.gz rspamd-976633feae742845a47aabe70dd93c547ba1876b.zip |
Add base32 decoding routine.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index 62a28d474..23964fc07 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -426,4 +426,12 @@ void rspamd_ucl_emit_gstring (ucl_object_t *obj, */ gchar * rspamd_encode_base32 (guchar *in, gsize inlen); +/** + * Decode string using base32 encoding + * @param in input + * @param inlen input length + * @return freshly allocated base32 decoded value or NULL if input is invalid + */ +guchar* rspamd_decode_base32 (gchar *in, gsize inlen, gsize *outlen); + #endif |