summaryrefslogtreecommitdiffstats
path: root/crypto/mem_sec.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-01-19 14:00:14 +0100
committerBernd Edlinger <bernd.edlinger@hotmail.de>2018-01-21 16:09:44 +0100
commit42999a230f893d63a17dd9aca4f8df5c860fc836 (patch)
treebdf2a87e2b1d32ee449ceb9b986724761b8eb81d /crypto/mem_sec.c
parent1d01aeeca4dd672d5a4a2c3560874a9b1a7d1410 (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.c2
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>