]> git.ipfire.org Git - thirdparty/openssl.git/commit - doc/internal/man3/OSSL_METHOD_STORE.pod
Don't empty the method store when flushing the query cache
authorRichard Levitte <levitte@openssl.org>
Fri, 22 Apr 2022 09:00:36 +0000 (11:00 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 5 May 2022 13:05:54 +0000 (15:05 +0200)
commit60640d79ca7ea0980dc09c71fe6a297b5f8588a2
treeb6d7d3a6986abc2e8bfccc4ec532dabe34068706
parent10937d5867039afbf869c8514245ed7599b61307
Don't empty the method store when flushing the query cache

When evp_method_store_flush() flushed the query cache, it also freed
all methods in the EVP method store, through an unfortunate call of
ossl_method_store_flush_cache() with an argument saying that all
methods should indeed be dropped.

To undo some of the confusion, ossl_method_store_flush_cache() is
renamed to ossl_method_store_cache_flush_all(), and limited to do
only that.  Some if the items in the internal ALGORITHM structure are
also renamed and commented to clarify what they are for.

Fixes #18150

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