Release the drbg in the global default context before engines
authorTomas Mraz <tomas@openssl.org>
Tue, 11 Oct 2022 15:26:23 +0000 (17:26 +0200)
committerTomas Mraz <tomas@openssl.org>
Wed, 2 Nov 2022 10:01:20 +0000 (11:01 +0100)
commita88e97fcace01ecf557b207f04328a72df5110df
tree18418437a2046ed33b1701f26f5f0799b7820f78
parentbd363ef32403d58a8b41553b5abd602b30073b10
Release the drbg in the global default context before engines

Fixes #17995
Fixes #18578

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/19386)
crypto/context.c
crypto/rand/rand_lib.c
include/crypto/context.h