]> git.ipfire.org Git - thirdparty/openssl.git/commit - doc/internal/man3/OSSL_METHOD_STORE.pod
Make it possible to remove methods by the provider that provides them
authorRichard Levitte <levitte@openssl.org>
Fri, 22 Apr 2022 14:44:51 +0000 (16:44 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 5 May 2022 13:05:55 +0000 (15:05 +0200)
commit2e4d0677ea858c619a33235265dbee19520a9d35
tree9d8df904bc5e2c15919065c7fe0e7f85c88d76a6
parent60640d79ca7ea0980dc09c71fe6a297b5f8588a2
Make it possible to remove methods by the provider that provides them

This adds ossl_method_store_remove_all_provided(), which selectively
removes methods from the given store that are provided by the given
provider.

This also adds the EVP specific evp_method_store_remove_all_provided(),
which matches ossl_method_store_remove_all_provided() but can also
retrieve the correct store to manipulate for EVP functions.

This allows us to modify ossl_provider_self_test() to do the job it's
supposed to do, but through clearly defined functions instead of a
cache flushing call that previously did more than that.

ossl_provider_deactivate() is also modified to remove methods associated
with the deactivated provider, and not just clearing the cache.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18151)
crypto/evp/evp_fetch.c
crypto/property/property.c
crypto/provider_core.c
doc/internal/man3/OSSL_METHOD_STORE.pod
include/crypto/evp.h
include/internal/property.h