summaryrefslogtreecommitdiffstats
path: root/src/lib/safe-memset.h
blob: affd562c001bae3770285215965fd96319df43b1 (plain)
1
2
3
4
5
6
7
8
#ifndef SAFE_MEMSET_H
#define SAFE_MEMSET_H

/* memset() guaranteed not to get optimized away by compiler.
   Should be used instead of memset() when clearing any sensitive data. */
void safe_memset(void *data, int c, size_t size);

#endif