aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/str_util.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-23 17:03:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-23 17:03:08 +0100
commit85fc3e7a7a34c58e389cac92ea7101e4b71cce37 (patch)
treeb741f7cb60741b652b455d4a620392f9dd8f06df /src/libutil/str_util.h
parent87c987155c06650750c355e8a0fd08299692a498 (diff)
downloadrspamd-85fc3e7a7a34c58e389cac92ea7101e4b71cce37.tar.gz
rspamd-85fc3e7a7a34c58e389cac92ea7101e4b71cce37.zip
[Feature] Add support of uudecode
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r--src/libutil/str_util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h
index 50387814c..7891a8e54 100644
--- a/src/libutil/str_util.h
+++ b/src/libutil/str_util.h
@@ -279,6 +279,17 @@ gssize rspamd_decode_qp_buf (const gchar *in, gsize inlen,
gchar *out, gsize outlen);
/**
+ * Decode uuencode encoded buffer, input and output must not overlap
+ * @param in input
+ * @param inlen length of input
+ * @param out output
+ * @param outlen length of output
+ * @return real size of decoded output or (-1) if outlen is not enough
+ */
+gssize rspamd_decode_uue_buf (const gchar *in, gsize inlen,
+ gchar *out, gsize outlen);
+
+/**
* Decode quoted-printable encoded buffer using rfc2047 format, input and output must not overlap
* @param in input
* @param inlen length of input