Clean up the encoder/decoder/loader stores before providers
authorMatt Caswell <matt@openssl.org>
Mon, 14 Jun 2021 11:08:38 +0000 (12:08 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 16 Jun 2021 10:06:30 +0000 (11:06 +0100)
commit5a5d90ffac78ac17e7a078a501bb33e1080c0935
treea178d5dc04fb17f0e3722fb917ad0f0286124cfb
parentf7d2427ac3404ce1ed555bf61885eeb0432b5789
Clean up the encoder/decoder/loader stores before providers

We already had the evp method store being cleaned up before the provider
store was. This prevents issues where the method clean up functions cause
providers to clean up, which then needs access to the provider store. We
extend the same thinking to the encoder/decoder/loader stores.

Fixes #15727

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15741)
crypto/encode_decode/decoder_meth.c
crypto/encode_decode/encoder_meth.c
crypto/store/store_meth.c