[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Andy Polyakov
appro at openssl.org
Mon Feb 26 16:52:33 UTC 2018
The branch OpenSSL_1_1_0-stable has been updated
via 4974a6f21b3e1aee969174fd20e2a68c36237e71 (commit)
from 831dbc358eab0a50c1b435f93d7c16d99ad61472 (commit)
- Log -----------------------------------------------------------------
commit 4974a6f21b3e1aee969174fd20e2a68c36237e71
Author: Andy Polyakov <appro at openssl.org>
Date: Sun Feb 25 16:56:26 2018 +0100
mem_sec.c: relax POSIX requirement.
Even though mlock(2) was standardized in POSIX.1-2001, vendors did
implement it prior that point.
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5460)
(cherry picked from commit 5839185cdd9b339ff741da437d964a25e72a3fb6)
-----------------------------------------------------------------------
Summary of changes:
crypto/mem_sec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/crypto/mem_sec.c b/crypto/mem_sec.c
index b626b3d..c36e392 100644
--- a/crypto/mem_sec.c
+++ b/crypto/mem_sec.c
@@ -26,7 +26,9 @@
/* e_os.h includes unistd.h, which defines _POSIX_VERSION */
#if !defined(OPENSSL_NO_SECURE_MEMORY) && defined(OPENSSL_SYS_UNIX) \
- && defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L
+ && ( (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
+ || defined(__sun) || defined(__hpux) || defined(__sgi) \
+ || defined(__osf__) )
# define IMPLEMENTED
# include <stdlib.h>
# include <assert.h>
More information about the openssl-commits
mailing list