aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/ffi/ffi.cpp2
-rw-r--r--src/lib/ffi/ffi.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ffi/ffi.cpp b/src/lib/ffi/ffi.cpp
index 044b03335..1dfa66e5f 100644
--- a/src/lib/ffi/ffi.cpp
+++ b/src/lib/ffi/ffi.cpp
@@ -68,7 +68,7 @@ int botan_same_mem(const uint8_t* x, const uint8_t* y, size_t len)
return Botan::same_mem(x, y, len) ? 0 : -1;
}
-int botan_scrub_mem(uint8_t* mem, size_t bytes)
+int botan_scrub_mem(void* mem, size_t bytes)
{
Botan::secure_scrub_memory(mem, bytes);
return BOTAN_FFI_SUCCESS;
diff --git a/src/lib/ffi/ffi.h b/src/lib/ffi/ffi.h
index 6ee286ad3..f59da0545 100644
--- a/src/lib/ffi/ffi.h
+++ b/src/lib/ffi/ffi.h
@@ -159,7 +159,7 @@ BOTAN_DLL int botan_same_mem(const uint8_t* x, const uint8_t* y, size_t len);
* Clear out memory using a system specific approach to bypass elision by the
* compiler (currently using RtlSecureZeroMemory or tricks with volatile pointers).
*/
-BOTAN_DLL int botan_scrub_mem(uint8_t* mem, size_t bytes);
+BOTAN_DLL int botan_scrub_mem(void* mem, size_t bytes);
#define BOTAN_FFI_HEX_LOWER_CASE 1