aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/mlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/mlock.h')
-rw-r--r--src/utils/mlock.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/mlock.h b/src/utils/mlock.h
index 66ced9e63..fea56d438 100644
--- a/src/utils/mlock.h
+++ b/src/utils/mlock.h
@@ -13,6 +13,11 @@
namespace Botan {
/**
+* Check if we can at least potentially lock memory
+*/
+bool has_mlock();
+
+/**
* Lock memory into RAM if possible
* @param addr the start of the memory block
* @param length the length of the memory block in bytes