diff options
author | Brent Cook <bcook@openbsd.org> | 2015-08-03 06:56:59 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2015-08-03 06:56:59 -0500 |
commit | c66d80a4381f0b492fd62e87deb88944b77efd22 (patch) | |
tree | 6631bbd0b3ca74973331e9d75801e310b77f1fad /crypto/compat | |
parent | 058e3ebe77db5f2ad0b84f2bb3d516fd600de56b (diff) | |
download | portable-c66d80a4381f0b492fd62e87deb88944b77efd22.tar.gz portable-c66d80a4381f0b492fd62e87deb88944b77efd22.tar.bz2 portable-c66d80a4381f0b492fd62e87deb88944b77efd22.zip |
add win32-specific explicit_bzero implementation
Diffstat (limited to 'crypto/compat')
-rw-r--r-- | crypto/compat/explicit_bzero_win.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/compat/explicit_bzero_win.c b/crypto/compat/explicit_bzero_win.c new file mode 100644 index 0000000..0d09d90 --- /dev/null +++ b/crypto/compat/explicit_bzero_win.c | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * Public domain. | ||
3 | * Win32 explicit_bzero compatibility shim. | ||
4 | */ | ||
5 | |||
6 | #include <windows.h> | ||
7 | #include <string.h> | ||
8 | |||
9 | void | ||
10 | explicit_bzero(void *buf, size_t len) | ||
11 | { | ||
12 | SecureZeroMemory(buf, len); | ||
13 | } | ||