git-subtree-dir: contrib/libfido2 git-subtree-mainline:d586c978b9
git-subtree-split:a58dee945a
20 lines
334 B
C
20 lines
334 B
C
/*
|
|
* Public domain.
|
|
* Win32 explicit_bzero compatibility shim.
|
|
*/
|
|
|
|
#include "openbsd-compat.h"
|
|
|
|
#if !defined(HAVE_EXPLICIT_BZERO) && defined(_WIN32)
|
|
|
|
#include <windows.h>
|
|
#include <string.h>
|
|
|
|
void
|
|
explicit_bzero(void *buf, size_t len)
|
|
{
|
|
SecureZeroMemory(buf, len);
|
|
}
|
|
|
|
#endif /* !defined(HAVE_EXPLICIT_BZERO) && defined(_WIN32) */
|