diff options
author | Jack Lloyd <[email protected]> | 2015-12-05 13:10:59 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-05 13:10:59 -0500 |
commit | f75ae7463a7f300a0b2a95693062b7129b6cc53d (patch) | |
tree | faec9ed28956bcd2dda6e8d26f4ba094678bb454 /src/build-data/buildh.in | |
parent | 2a472e9b33617afa62f5f899ec7eba90eb2f7ece (diff) |
Add OS utility header
Provide abstractions for the locking allocator (allocate and free
locked pages) to decouple it from the platform dependent code. Should
make it easy to write a Windows version using VirtualAlloc+VirtualLock.
Exposes max mlock limit as a build.h toggle
Diffstat (limited to 'src/build-data/buildh.in')
-rw-r--r-- | src/build-data/buildh.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/build-data/buildh.in b/src/build-data/buildh.in index 8b950177f..d993a7ee9 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -41,6 +41,12 @@ #define BOTAN_MLOCK_ALLOCATOR_MIN_ALLOCATION 16 #define BOTAN_MLOCK_ALLOCATOR_MAX_ALLOCATION 128 +/* +* Total maximum amount of RAM (in KiB) we will lock into memory, even +* if the OS would let us lock more +*/ +#define BOTAN_MLOCK_ALLOCATOR_MAX_LOCKED_KB 512 + /* Multiplier on a block cipher's native parallelism */ #define BOTAN_BLOCK_CIPHER_PAR_MULT 4 |