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:09:44 +0100 |
commit | 42999a230f893d63a17dd9aca4f8df5c860fc836 (patch) | |
tree | bdf2a87e2b1d32ee449ceb9b986724761b8eb81d /crypto/mem_sec.c | |
parent | 1d01aeeca4dd672d5a4a2c3560874a9b1a7d1410 (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)
(cherry picked from commit 154d8c132fbe22a248f95e95ef21f1840451da62)
Diffstat (limited to 'crypto/mem_sec.c')
-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 b26ba20a62..b626b3d396 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -25,7 +25,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> |