diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-26 14:54:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-26 14:54:40 +0000 |
commit | 8b5cd205ada30cb3e05d154efb078fb69a53c358 (patch) | |
tree | ba4839a8698372a6ee1982f0554ff1e0aea4f90f /src/libutil/str_util.h | |
parent | 83e473fa183b66e75443591e9f897b06db549622 (diff) | |
download | rspamd-8b5cd205ada30cb3e05d154efb078fb69a53c358.tar.gz rspamd-8b5cd205ada30cb3e05d154efb078fb69a53c358.zip |
[Feature] Support ed25519 dkim keys generation
Diffstat (limited to 'src/libutil/str_util.h')
-rw-r--r-- | src/libutil/str_util.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/libutil/str_util.h b/src/libutil/str_util.h index 34c1271d4..9145b97b4 100644 --- a/src/libutil/str_util.h +++ b/src/libutil/str_util.h @@ -184,6 +184,7 @@ gint rspamd_decode_base32_buf (const gchar *in, gsize inlen, gint rspamd_encode_hex_buf (const guchar *in, gsize inlen, gchar *out, gsize outlen); + /** * Decode string using hex encoding * @param in input @@ -196,6 +197,23 @@ gssize rspamd_decode_hex_buf (const gchar *in, gsize inlen, guchar *out, gsize outlen); /** + * Common version of base64 encoder + * @param in + * @param inlen + * @param str_len + * @param outlen + * @param fold + * @param how + * @return + */ +gchar * +rspamd_encode_base64_common (const guchar *in, + gsize inlen, + gint str_len, + gsize *outlen, + gboolean fold, + enum rspamd_newlines_type how); +/** * Encode string using base64 encoding * @param in input * @param inlen input length |