diff options
author | Matt Caswell <matt@openssl.org> | 2018-11-16 14:05:14 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-01-04 20:23:16 +0000 |
commit | 6b97cc6ec17586ff9c1d96ab5c3e0b6d829074a8 (patch) | |
tree | e591f6a1443069c45c5ecf22e9b0794025e0f974 /crypto | |
parent | f5f3dfd5efcc1e4073719f788ed4c40f8dc8cf3b (diff) |
Introduce a no-pinshared option
This option prevents OpenSSL from pinning itself in memory.
Fixes #7598
[extended tests]
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7983)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/init.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crypto/init.c b/crypto/init.c index 1bafb17a92..1c50f2994e 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -147,7 +147,9 @@ DEFINE_RUN_ONCE_STATIC(ossl_init_load_crypto_nodelete) #ifdef OPENSSL_INIT_DEBUG fprintf(stderr, "OPENSSL_INIT: ossl_init_load_crypto_nodelete()\n"); #endif -#if !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE) +#if !defined(OPENSSL_NO_DSO) \ + && !defined(OPENSSL_USE_NODELETE) \ + && !defined(OPENSSL_NO_PINSHARED) # ifdef DSO_WIN32 { HMODULE handle = NULL; @@ -735,7 +737,9 @@ int OPENSSL_atexit(void (*handler)(void)) { OPENSSL_INIT_STOP *newhand; -#if !defined(OPENSSL_NO_DSO) && !defined(OPENSSL_USE_NODELETE) +#if !defined(OPENSSL_NO_DSO) \ + && !defined(OPENSSL_USE_NODELETE)\ + && !defined(OPENSSL_NO_PINSHARED) { union { void *sym; |