diff options
author | lloyd <[email protected]> | 2015-01-23 15:53:44 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-01-23 15:53:44 +0000 |
commit | 9a0da0565c042c0f0a09caed036621c47e3f494e (patch) | |
tree | 85d2e78787506882f54bbff497f802c2eb0a186e /src/build-data | |
parent | 7e6ac35931ed073d01c96d212bba5c7674cba505 (diff) |
Remove memset_s, not implemented on any machine I can test on and
problematic for requiring a special define before the first include of
string.h. Instead optionally call memset via a volatile function
pointer as a faster alternative to byte at a time writes.
Github 42, 45
Diffstat (limited to 'src/build-data')
-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 636552a4f..fdb141ffb 100644 --- a/src/build-data/buildh.in +++ b/src/build-data/buildh.in @@ -44,6 +44,12 @@ /* How many bits per limb in a BigInt */ #define BOTAN_MP_WORD_BITS %{mp_bits} +/* +If enabled uses memset via volatile function pointer to zero memory, +otherwise does a byte at a time write via a volatile pointer. +*/ +#define BOTAN_USE_VOLATILE_MEMSET_FOR_ZERO 1 + /* PK key consistency checking toggles */ #define BOTAN_PUBLIC_KEY_STRONG_CHECKS_ON_LOAD 1 #define BOTAN_PRIVATE_KEY_STRONG_CHECKS_ON_LOAD 0 |