aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/os_utils.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-03 11:33:27 -0400
committerJack Lloyd <[email protected]>2016-11-03 11:33:27 -0400
commite36ab67b80a0fb162df768d5895c413d26e2e5ca (patch)
treee496e7d51d16d8b56e9efe6ee340a26b5ee5f069 /src/lib/utils/os_utils.cpp
parent341fd32b46363cad4c2caee3fca166695100ba07 (diff)
Rename zero_mem to secure_scrub_memory
Diffstat (limited to 'src/lib/utils/os_utils.cpp')
-rw-r--r--src/lib/utils/os_utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index 4020a4be3..f40426613 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -283,11 +283,11 @@ void free_locked_pages(void* ptr, size_t length)
return;
#if defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
- zero_mem(ptr, length);
+ secure_scrub_memory(ptr, length);
::munlock(ptr, length);
::munmap(ptr, length);
#elif defined BOTAN_TARGET_OS_HAS_VIRTUAL_LOCK
- zero_mem(ptr, length);
+ secure_scrub_memory(ptr, length);
::VirtualUnlock(ptr, length);
::VirtualFree(ptr, 0, MEM_RELEASE);
#else