summaryrefslogtreecommitdiffstats
path: root/e_os.h
diff options
context:
space:
mode:
authorJeremiah Gowdy <jeremiah@gowdy.me>2020-10-18 23:12:35 +0200
committerPauli <paul.dale@oracle.com>2020-10-22 04:11:35 +0200
commitf31ac320012c9aa1540034288ea94f6c80924aa3 (patch)
treed2d8fe1277101793a728f2493ac34aff9b1fc16f /e_os.h
parentUnexport internal MSBLOB and PVK functions (diff)
downloadopenssl-f31ac320012c9aa1540034288ea94f6c80924aa3.tar.xz
openssl-f31ac320012c9aa1540034288ea94f6c80924aa3.zip
Implement OpenSSL secure memory for Windows
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/13172)
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/e_os.h b/e_os.h
index 979be9b2b1..3e7a13f94d 100644
--- a/e_os.h
+++ b/e_os.h
@@ -359,10 +359,11 @@ inline int nssgetpid();
# ifndef OPENSSL_NO_SECURE_MEMORY
/* unistd.h defines _POSIX_VERSION */
-# if defined(OPENSSL_SYS_UNIX) \
- && ( (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
- || defined(__sun) || defined(__hpux) || defined(__sgi) \
- || defined(__osf__) )
+# if (defined(OPENSSL_SYS_UNIX) \
+ && ( (defined(_POSIX_VERSION) && _POSIX_VERSION >= 200112L) \
+ || defined(__sun) || defined(__hpux) || defined(__sgi) \
+ || defined(__osf__) )) \
+ || defined(_WIN32)
/* secure memory is implemented */
# else
# define OPENSSL_NO_SECURE_MEMORY