diff options
| author | 2020-01-07 19:09:26 +0000 | |
|---|---|---|
| committer | 2020-01-07 19:09:26 +0000 | |
| commit | a59702155124f11e4e0b4e74a52e006d6f5fbd7d (patch) | |
| tree | 576b521c1ffa98a51100ea7a8cb2c105d8c3abbb /usr.sbin/bind/lib/isc/safe.c | |
| parent | Remove thread support. Minus 4k lines. (diff) | |
| download | wireguard-openbsd-a59702155124f11e4e0b4e74a52e006d6f5fbd7d.tar.xz wireguard-openbsd-a59702155124f11e4e0b4e74a52e006d6f5fbd7d.zip | |
We are not windows. Minus 500 lines.
OK millert
Diffstat (limited to 'usr.sbin/bind/lib/isc/safe.c')
| -rw-r--r-- | usr.sbin/bind/lib/isc/safe.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.sbin/bind/lib/isc/safe.c b/usr.sbin/bind/lib/isc/safe.c index 92f41c29862..07d8eb9674b 100644 --- a/usr.sbin/bind/lib/isc/safe.c +++ b/usr.sbin/bind/lib/isc/safe.c @@ -22,10 +22,6 @@ #include <isc/string.h> #include <isc/util.h> -#ifdef WIN32 -#include <windows.h> -#endif - #ifdef _MSC_VER #pragma optimize("", off) #endif @@ -76,9 +72,7 @@ isc_safe_memwipe(void *ptr, size_t len) { if (ISC_UNLIKELY(ptr == NULL || len == 0)) return; -#ifdef WIN32 - SecureZeroMemory(ptr, len); -#elif HAVE_EXPLICIT_BZERO +#if HAVE_EXPLICIT_BZERO explicit_bzero(ptr, len); #else memset(ptr, 0, len); |
