diff options
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 |