diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-01-19 14:00:14 +0100 |
---|---|---|
committer | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-01-21 16:08:30 +0100 |
commit | 154d8c132fbe22a248f95e95ef21f1840451da62 (patch) | |
tree | 6555a217c4aebd20a18752e1f8768571a9a936fe /crypto | |
parent | 7c24f9d21cddd2bb30167153b05168fee7e3cf0b (diff) |
Add a configure option to opt-out secure memory
./config -DOPENSSL_NO_SECURE_MEMORY
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5113)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/mem_sec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index afd0c26bea..8f4ae9c94a 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -21,7 +21,7 @@ #include <string.h> /* e_os.h includes unistd.h, which defines _POSIX_VERSION */ -#if defined(OPENSSL_SYS_UNIX) \ +#if !defined(OPENSSL_NO_SECURE_MEMORY) && defined(OPENSSL_SYS_UNIX) \ && defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L # define IMPLEMENTED # include <stdlib.h> |