From: David Carlier Date: Fri, 13 Nov 2020 06:07:52 +0000 (+0000) Subject: CRYPTO_secure_malloc_init: Add FreeBSD support for secure-malloc dont-dump-region. X-Git-Tag: openssl-3.0.0-alpha10~114 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=27db6118722a8af928aa6e4d1be865fa46fb0f0c;p=thirdparty%2Fopenssl.git CRYPTO_secure_malloc_init: Add FreeBSD support for secure-malloc dont-dump-region. Reviewed-by: Richard Levitte Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13394) --- diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c index ee3750725c7..f27a759f173 100644 --- a/crypto/mem_sec.c +++ b/crypto/mem_sec.c @@ -32,6 +32,9 @@ # include # if defined(OPENSSL_SYS_UNIX) # include +# if defined(__FreeBSD__) +# define MADV_DONTDUMP MADV_NOCORE +# endif # endif # if defined(OPENSSL_SYS_LINUX) # include