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>
This commit is contained in:
David Woodhouse 2016-02-17 14:54:33 +00:00 committed by Rich Salz
parent dba3177745
commit c7b7938e75

View file

@ -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;
}