From: David Woodhouse Date: Wed, 17 Feb 2016 14:54:33 +0000 (+0000) Subject: RT4315: Fix UEFI build in crypto/init.c X-Git-Tag: OpenSSL_1_1_0-pre4~641 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c7b7938e75587d1ff8cf28c9de966623cfbe8858;p=oweals%2Fopenssl.git 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 Reviewed-by: Matt Caswell --- 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; }