diff options
Diffstat (limited to 'src/liboutils/mem_clr.c')
-rw-r--r-- | src/liboutils/mem_clr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/liboutils/mem_clr.c b/src/liboutils/mem_clr.c new file mode 100644 index 0000000..d8ce0c2 --- /dev/null +++ b/src/liboutils/mem_clr.c @@ -0,0 +1,11 @@ +/* $OpenBSD: mem_clr.c,v 1.3 2014/04/15 23:04:49 tedu Exp $ */ + +/* Ted Unangst places this file in the public domain. */ +#include <string.h> +#include <openssl/crypto.h> + +void +OPENSSL_cleanse(void *ptr, size_t len) +{ + explicit_bzero(ptr, len); +} |