Make secure-memory be a config option
authorRich Salz <rsalz@akamai.com>
Wed, 5 Feb 2020 19:28:37 +0000 (14:28 -0500)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 14 Feb 2020 14:18:27 +0000 (15:18 +0100)
commit6943335e3e3889fd7a1c7b027ccdcd4f3955b5ec
tree9979b8473e1a1d6d7ad0899f9a3a194804a0ae10
parentcdb16632636c4a1a439449d110f94cad15d2e9fe
Make secure-memory be a config option

Adding support for "no-secure-memory" was simple, a one-liner.
Fixing all the "ifdef OPENSSL_SECURE_MEMORY" to be "ifndef NO_xxx"
was a bit more work.  My original goof, for not following the OpenSSL
pattern "ifndef NO_" used everywhere else.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/11023)
Configure
crypto/mem_sec.c
e_os.h
test/secmemtest.c