diff options
author | Matt Caswell <matt@openssl.org> | 2020-05-04 15:28:15 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-05 10:31:06 +0100 |
commit | 5f603a280ca71b7136861b9bc408f37fd1c4e0d7 (patch) | |
tree | 4c201e275d78aede7ba0a4d03425ab300fce665a /include/openssl/provider.h | |
parent | 263ff2c9d4c88f19133d21d9956d71edd7401d54 (diff) | |
download | openssl-new-5f603a280ca71b7136861b9bc408f37fd1c4e0d7.tar.gz |
Enable applications to directly call a provider's query operation
This is useful to get hold of the low-level dispatch tables. This could
be used to create a new provider based on an existing one.
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/11834)
Diffstat (limited to 'include/openssl/provider.h')
-rw-r--r-- | include/openssl/provider.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openssl/provider.h b/include/openssl/provider.h index 6ce68b16e7..91b864e423 100644 --- a/include/openssl/provider.h +++ b/include/openssl/provider.h @@ -30,6 +30,10 @@ int OSSL_PROVIDER_do_all(OPENSSL_CTX *ctx, const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov); int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]); +const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov, + int operation_id, + int *no_cache); + /* Add a built in providers */ int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *, const char *name, OSSL_provider_init_fn *init_fn); |