summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2022-04-20 16:43:13 +0200
committerRichard Levitte <levitte@openssl.org>2022-05-05 15:05:54 +0200
commit20b6d85ab2b9cfa4cd29d2422d69c3e3f4db0a41 (patch)
treeb36e80fcc6b3c399828112365c01f4c4f4b61706 /include
parent802cacf34f2db9111becb4f0d3aa00460df13a19 (diff)
Drop ossl_provider_clear_all_operation_bits() and all uses of it
This is a misused function, as it was called during query cache flush, when the provider operation bits were meant to record if methods for a certain operation has already been added to the method store. 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')
-rw-r--r--include/internal/provider.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/internal/provider.h b/include/internal/provider.h
index b8ba7f6892..33750eba9c 100644
--- a/include/internal/provider.h
+++ b/include/internal/provider.h
@@ -94,11 +94,14 @@ void ossl_provider_unquery_operation(const OSSL_PROVIDER *prov,
int operation_id,
const OSSL_ALGORITHM *algs);
-/* Cache of bits to see if we already queried an operation */
+/*
+ * Cache of bits to see if we already added methods for an operation in
+ * the "permanent" method store.
+ * They should never be called for temporary method stores!
+ */
int ossl_provider_set_operation_bit(OSSL_PROVIDER *provider, size_t bitnum);
int ossl_provider_test_operation_bit(OSSL_PROVIDER *provider, size_t bitnum,
int *result);
-int ossl_provider_clear_all_operation_bits(OSSL_LIB_CTX *libctx);
/* Configuration */
void ossl_provider_add_conf_module(void);