From 42999a230f893d63a17dd9aca4f8df5c860fc836 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Fri, 19 Jan 2018 14:00:14 +0100 Subject: [PATCH] Add a configure option to opt-out secure memory ./config -DOPENSSL_NO_SECURE_MEMORY Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/5113) (cherry picked from commit 154d8c132fbe22a248f95e95ef21f1840451da62) --- crypto/mem_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 /* 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 -- 2.25.1