diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2016-02-17 14:54:33 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-17 10:07:30 -0500 |
commit | c7b7938e75587d1ff8cf28c9de966623cfbe8858 (patch) | |
tree | 228ccc7e3d77458f46169e2f6db85a603c3483d8 /crypto/init.c | |
parent | dba317774555fbd5bccdfc5270fc486e0d02d9db (diff) | |
download | openssl-c7b7938e75587d1ff8cf28c9de966623cfbe8858.tar.gz |
RT4315: Fix UEFI build in crypto/init.c
We don't have atexit() in the EDK2 environment. Firmware never exits.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/init.c')
-rw-r--r-- | crypto/init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/init.c b/crypto/init.c index 25e3dc7693..c7eff8ba4a 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -270,7 +270,9 @@ static void ossl_init_base(void) fprintf(stderr, "OPENSSL_INIT: ossl_init_base: Setting up stop handlers\n"); #endif ossl_init_setup_thread_stop(); +#ifndef OPENSSL_SYS_UEFI atexit(OPENSSL_cleanup); +#endif OPENSSL_cpuid_setup(); base_inited = 1; } |