[openssl-dev] [openssl.org #4315] [PATCH] Fix UEFI build in crypto/init.c
David Woodhouse via RT
rt at openssl.org
Wed Feb 17 14:56:47 UTC 2016
We don't have atexit() in the EDK2 environment. Firmware never exits.
---
crypto/init.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/crypto/init.c b/crypto/init.c
index 25e3dc7..c7eff8b 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;
}
--
2.5.0
--
David Woodhouse Open Source Technology Centre
David.Woodhouse at intel.com Intel Corporation
--
Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4315
Please log in as guest with password guest if prompted
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5691 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-dev/attachments/20160217/14641736/attachment.bin>
More information about the openssl-dev
mailing list