diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-03 22:03:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-02-03 22:03:22 +0000 |
commit | b5e9a22e49f6b7fe817f398898095f521de35ad7 (patch) | |
tree | aef405899212acb89f8e41b8ba0b95d0283b5572 /src/libutil/util.h | |
parent | 8a02a5a211ac2e136ac26fe7bf720b8aeb94450c (diff) | |
download | rspamd-b5e9a22e49f6b7fe817f398898095f521de35ad7.tar.gz rspamd-b5e9a22e49f6b7fe817f398898095f521de35ad7.zip |
Add explicit_memzero function.
Diffstat (limited to 'src/libutil/util.h')
-rw-r--r-- | src/libutil/util.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libutil/util.h b/src/libutil/util.h index fd584938f..704bc3d63 100644 --- a/src/libutil/util.h +++ b/src/libutil/util.h @@ -434,4 +434,11 @@ gchar * rspamd_encode_base32 (const guchar *in, gsize inlen); */ guchar* rspamd_decode_base32 (const gchar *in, gsize inlen, gsize *outlen); +/** + * Securely clear the buffer specified + * @param buf + * @param buflen + */ +void rspamd_explicit_memzero (void * const buf, gsize buflen); + #endif |