diff options
author | Richard Levitte <levitte@openssl.org> | 2020-05-18 12:43:12 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-05-20 11:26:14 +0200 |
commit | a7ad40c502d3484e0a574e121cfba70631f224bf (patch) | |
tree | 68997906916c0eb3768f0723e6f310b77c8ee6c1 /doc/man3/OSSL_PROVIDER.pod | |
parent | b2a5001d954e81e2a582f2a935212ab554a3cbbe (diff) | |
download | openssl-new-a7ad40c502d3484e0a574e121cfba70631f224bf.tar.gz |
Add OSSL_PROVIDER_do_all()
This allows applications to iterate over all loaded providers.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11858)
Diffstat (limited to 'doc/man3/OSSL_PROVIDER.pod')
-rw-r--r-- | doc/man3/OSSL_PROVIDER.pod | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/man3/OSSL_PROVIDER.pod b/doc/man3/OSSL_PROVIDER.pod index 3f1a946653..93d6e1421c 100644 --- a/doc/man3/OSSL_PROVIDER.pod +++ b/doc/man3/OSSL_PROVIDER.pod @@ -4,7 +4,7 @@ OSSL_PROVIDER_set_default_search_path, OSSL_PROVIDER, OSSL_PROVIDER_load, OSSL_PROVIDER_unload, -OSSL_PROVIDER_available, +OSSL_PROVIDER_available, OSSL_PROVIDER_do_all, OSSL_PROVIDER_gettable_params, OSSL_PROVIDER_get_params, OSSL_PROVIDER_add_builtin, OSSL_PROVIDER_name - provider routines @@ -20,6 +20,9 @@ OSSL_PROVIDER_add_builtin, OSSL_PROVIDER_name - provider routines OSSL_PROVIDER *OSSL_PROVIDER_load(OPENSSL_CTX *libctx, const char *name); int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov); int OSSL_PROVIDER_available(OPENSSL_CTX *libctx, const char *name); + int OSSL_PROVIDER_do_all(OPENSSL_CTX *ctx, + int (*cb)(OSSL_PROVIDER *provider, void *cbdata), + void *cbdata); const OSSL_PARAM *OSSL_PROVIDER_gettable_params(OSSL_PROVIDER *prov); int OSSL_PROVIDER_get_params(OSSL_PROVIDER *prov, OSSL_PARAM params[]); @@ -66,6 +69,10 @@ runs its teardown function. OSSL_PROVIDER_available() checks if a named provider is available for use. +OSSL_PROVIDER_do_all() iterates over all loaded providers, calling +I<cb> for each one, with the current provider in I<provider> and the +I<cbdata> that comes from the caller. + OSSL_PROVIDER_gettable_params() is used to get a provider parameter descriptor set as a constant B<OSSL_PARAM> array. See L<OSSL_PARAM(3)> for more information. |