diff options
author | Richard Levitte <levitte@openssl.org> | 2021-06-03 09:09:19 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-06-15 16:21:31 +0200 |
commit | f0191d0b1373bb7b0c50a0103d63791f51ed3398 (patch) | |
tree | 6682eddfadfc09727b8dfba8feef9678cc13b241 /include | |
parent | 04fb4ec8facc5555e1e289029c289ebc4b487db8 (diff) |
Add the internal function ossl_method_store_do_all()
It will simply call the given callback for every method found in the
given store.
Fixes #15538
Fixes #14837
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15604)
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/property.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/internal/property.h b/include/internal/property.h index bcea21d80c..dd9a2dc2d8 100644 --- a/include/internal/property.h +++ b/include/internal/property.h @@ -58,6 +58,9 @@ int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov, void (*method_destruct)(void *)); int ossl_method_store_remove(OSSL_METHOD_STORE *store, int nid, const void *method); +void ossl_method_store_do_all(OSSL_METHOD_STORE *store, + void (*fn)(int id, void *method, void *fnarg), + void *fnarg); int ossl_method_store_fetch(OSSL_METHOD_STORE *store, int nid, const char *prop_query, void **method); |