Clean up the encoder/decoder/loader stores before providers
[openssl.git] / crypto / encode_decode / decoder_meth.c
index e25efe532bea2bc5f8de36935d5f6e9f3e1e10d7..0ec886bb291de8ac5cfadbc4e0952c868d969f37 100644 (file)
@@ -78,7 +78,8 @@ static void *decoder_store_new(OSSL_LIB_CTX *ctx)
 
 
 static const OSSL_LIB_CTX_METHOD decoder_store_method = {
-    OSSL_LIB_CTX_METHOD_DEFAULT_PRIORITY,
+    /* We want decoder_store to be cleaned up before the provider store */
+    OSSL_LIB_CTX_METHOD_PRIORITY_2,
     decoder_store_new,
     decoder_store_free,
 };