aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-29 19:24:33 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-29 19:24:33 +0000
commit17e047e1d0f5a84f2503f1550293213a4d4a6505 (patch)
tree0ed9d479d7b9c445243f01c9667093be1f21f83d /src/libutil/util.h
parenta2097c2da30e72f41cbcdc11214e31602b6f513a (diff)
downloadrspamd-17e047e1d0f5a84f2503f1550293213a4d4a6505.tar.gz
rspamd-17e047e1d0f5a84f2503f1550293213a4d4a6505.zip
Use const for base32 encoding.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r--src/libutil/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h
index 23964fc07..fd584938f 100644
--- a/src/libutil/util.h
+++ b/src/libutil/util.h
@@ -424,7 +424,7 @@ void rspamd_ucl_emit_gstring (ucl_object_t *obj,
* @param inlen input length
* @return freshly allocated base32 encoding of a specified string
*/
-gchar * rspamd_encode_base32 (guchar *in, gsize inlen);
+gchar * rspamd_encode_base32 (const guchar *in, gsize inlen);
/**
* Decode string using base32 encoding
@@ -432,6 +432,6 @@ gchar * rspamd_encode_base32 (guchar *in, gsize inlen);
* @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);
+guchar* rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen);
#endif