mirror of
https://github.com/token2/fido2-manage.git
synced 2026-04-09 10:45:39 +00:00
Add files via upload
This commit is contained in:
19
openbsd-compat/explicit_bzero_win32.c
Normal file
19
openbsd-compat/explicit_bzero_win32.c
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* 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) */
|
||||
Reference in New Issue
Block a user