summaryrefslogtreecommitdiff
path: root/lib/libcrypto/mem_clr.c
blob: 9ee5e65a2e6700f5f67b9e8971d1d8c28c6bd64b (plain)
1
2
3
4
5
6
7
8
9
10
11
/* $OpenBSD: mem_clr.c,v 1.4 2014/06/12 15:49:27 deraadt 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);
}