diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-20 22:23:53 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-09-20 22:23:53 +0100 |
commit | 784c86611d3194a10ccc24cf11fe7da606387ad5 (patch) | |
tree | 41c704e63f27fcd2db8e0d2d7a4fa7b3129cf605 /src/libutil/util.h | |
parent | 319e6580b67bdc8eb7fc4920c49f6e0ae4bad6c4 (diff) | |
download | rspamd-784c86611d3194a10ccc24cf11fe7da606387ad5.tar.gz rspamd-784c86611d3194a10ccc24cf11fe7da606387ad5.zip |
Add base32 encoding utility.
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 3a44cb1d8..e2e20da62 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -489,4 +489,12 @@ void rspamd_inet_address_set_port (rspamd_inet_addr_t *addr, uint16_t port); int rspamd_inet_address_connect (rspamd_inet_addr_t *addr, gint type, gboolean async); +/** + * Encode string using base32 encoding + * @param in input + * @param inlen input length + * @return freshly allocated base32 encoding of a specified string + */ +gchar * rspamd_encode_base32(guchar *in, gsize inlen); + #endif |