static void context_deinit_objs(OSSL_LIB_CTX *ctx)
{
- /* P2. We want evp_method_store to be cleaned up before the provider store */
- if (ctx->evp_method_store != NULL) {
- ossl_method_store_free(ctx->evp_method_store);
- ctx->evp_method_store = NULL;
- }
-
/* P2. */
if (ctx->drbg != NULL) {
ossl_rand_ctx_free(ctx->drbg);
* P2. We want decoder_store/decoder_cache to be cleaned up before the
* provider store
*/
- if (ctx->decoder_store != NULL) {
- ossl_method_store_free(ctx->decoder_store);
- ctx->decoder_store = NULL;
- }
if (ctx->decoder_cache != NULL) {
ossl_decoder_cache_free(ctx->decoder_cache);
ctx->decoder_cache = NULL;
}
+ if (ctx->decoder_store != NULL) {
+ ossl_method_store_free(ctx->decoder_store);
+ ctx->decoder_store = NULL;
+ }
/* P2. We want encoder_store to be cleaned up before the provider store */
if (ctx->encoder_store != NULL) {
ctx->provider_store = NULL;
}
+ /* P2. We want evp_method_store to be cleaned up before the provider store */
+ if (ctx->evp_method_store != NULL) {
+ ossl_method_store_free(ctx->evp_method_store);
+ ctx->evp_method_store = NULL;
+ }
+
/* Default priority. */
if (ctx->property_string_data != NULL) {
ossl_property_string_data_free(ctx->property_string_data);