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:
parent
dba3177745
commit
c7b7938e75
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue