summaryrefslogtreecommitdiffstats
path: root/include/crypto/store.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-05-04 09:15:29 +0200
committerRichard Levitte <levitte@openssl.org>2022-05-05 15:14:37 +0200
commit37a6e9efe013f9e6a840e38beb81e44b9fee3629 (patch)
treea85b9a247750a6b5d38671aa43f850654af56395 /include/crypto/store.h
parenta860a5807adf61f624872fa26aeb31585c17aa72 (diff)
Add method store cache flush and method removal to non-EVP operations
evp_method_store_flush() and evp_method_store_remove_all_provided() only cover EVP operations, but not encoders, decoders and store loaders. This adds corresponding methods for those as well. Without this, their method stores are never cleaned up when the corresponding providers are deactivated or otherwise modified. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18151) (cherry picked from commit 32e3c071373280b69be02ba91fc3204495e2e1bf)
Diffstat (limited to 'include/crypto/store.h')
-rw-r--r--include/crypto/store.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/crypto/store.h b/include/crypto/store.h
index 13d2646bba..9b7be71acd 100644
--- a/include/crypto/store.h
+++ b/include/crypto/store.h
@@ -17,5 +17,7 @@
void ossl_store_cleanup_int(void);
int ossl_store_loader_get_number(const OSSL_STORE_LOADER *loader);
+int ossl_store_loader_store_cache_flush(OSSL_LIB_CTX *libctx);
+int ossl_store_loader_store_remove_all_provided(const OSSL_PROVIDER *prov);
#endif