summaryrefslogtreecommitdiffstats
path: root/include/internal/property.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-04-22 11:00:36 +0200
committerRichard Levitte <levitte@openssl.org>2022-05-05 15:05:54 +0200
commit60640d79ca7ea0980dc09c71fe6a297b5f8588a2 (patch)
treeb6d7d3a6986abc2e8bfccc4ec532dabe34068706 /include/internal/property.h
parent10937d5867039afbf869c8514245ed7599b61307 (diff)
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)
Diffstat (limited to 'include/internal/property.h')
-rw-r--r--include/internal/property.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/property.h b/include/internal/property.h
index 8211974595..9c68e8c346 100644
--- a/include/internal/property.h
+++ b/include/internal/property.h
@@ -77,7 +77,7 @@ int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
int (*method_up_ref)(void *),
void (*method_destruct)(void *));
-__owur int ossl_method_store_flush_cache(OSSL_METHOD_STORE *store, int all);
+__owur int ossl_method_store_cache_flush_all(OSSL_METHOD_STORE *store);
/* Merge two property queries together */
OSSL_PROPERTY_LIST *ossl_property_merge(const OSSL_PROPERTY_LIST *a,