From: Bernd Edlinger Date: Fri, 19 Jan 2018 13:00:14 +0000 (+0100) Subject: Add a configure option to opt-out secure memory X-Git-Tag: OpenSSL_1_1_1-pre1~172 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=154d8c132fbe22a248f95e95ef21f1840451da62;p=oweals%2Fopenssl.git 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) --- 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 /* 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