diff options
author | Matt Caswell <matt@openssl.org> | 2021-04-26 11:35:17 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2021-05-11 14:56:55 +0100 |
commit | a16d21744df686a7c005d1f129915d9083476e14 (patch) | |
tree | 1ea4d25a974b2f7cfcaafe65a03f9557b8ddc780 /crypto/provider_conf.c | |
parent | d07af736de592602f2831f8559d0302cb116e190 (diff) |
Add the ability for ex_data to have a priority
Where an object has multiple ex_data associated with it, then we free that
ex_data in order of priority (high priority first).
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14991)
Diffstat (limited to 'crypto/provider_conf.c')
-rw-r--r-- | crypto/provider_conf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/provider_conf.c b/crypto/provider_conf.c index a04a7aa553..6223d27cbb 100644 --- a/crypto/provider_conf.c +++ b/crypto/provider_conf.c @@ -45,6 +45,8 @@ static void prov_conf_ossl_ctx_free(void *vpcgbl) } static const OSSL_LIB_CTX_METHOD provider_conf_ossl_ctx_method = { + /* Must be freed before the provider store is freed */ + OSSL_LIB_CTX_METHOD_HIGH_PRIORITY, prov_conf_ossl_ctx_new, prov_conf_ossl_ctx_free, }; |