diff options
author | Richard Levitte <levitte@openssl.org> | 2019-02-25 01:53:34 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-03-12 20:25:46 +0100 |
commit | 85e2417c0d81cfe97586b74c410ef37595aea72d (patch) | |
tree | 1bd00d198ab71707c691b0b9ae896e2ee5527a50 /include/internal | |
parent | Change OSSL_PARAM_UTF8_STRING_PTR to OSSL_PARAM_UTF8_PTR (diff) | |
download | openssl-85e2417c0d81cfe97586b74c410ef37595aea72d.tar.xz openssl-85e2417c0d81cfe97586b74c410ef37595aea72d.zip |
Replumbing: Add an OSSL_PROVIDER iterator with callback
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8340)
Diffstat (limited to 'include/internal')
-rw-r--r-- | include/internal/provider.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/internal/provider.h b/include/internal/provider.h index 44d1d70461..dee5ee6b9f 100644 --- a/include/internal/provider.h +++ b/include/internal/provider.h @@ -42,6 +42,12 @@ int ossl_provider_add_module_location(OSSL_PROVIDER *prov, const char *loc); */ int ossl_provider_activate(OSSL_PROVIDER *prov); +/* Iterate over all loaded providers */ +int ossl_provider_forall_loaded(OPENSSL_CTX *, + int (*cb)(OSSL_PROVIDER *provider, + void *cbdata), + void *cbdata); + /* Getters for other library functions */ const char *ossl_provider_name(OSSL_PROVIDER *prov); const DSO *ossl_provider_dso(OSSL_PROVIDER *prov); |