diff options
author | Matt Caswell <matt@openssl.org> | 2020-05-04 16:28:15 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-05 11:31:06 +0200 |
commit | 5f603a280ca71b7136861b9bc408f37fd1c4e0d7 (patch) | |
tree | 4c201e275d78aede7ba0a4d03425ab300fce665a /crypto/provider.c | |
parent | Check that Signature Algorithms are available before using them (diff) | |
download | openssl-5f603a280ca71b7136861b9bc408f37fd1c4e0d7.tar.xz openssl-5f603a280ca71b7136861b9bc408f37fd1c4e0d7.zip |
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 'crypto/provider.c')
-rw-r--r-- | crypto/provider.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crypto/provider.c b/crypto/provider.c index 13438cefe3..6b029ecced 100644 --- a/crypto/provider.c +++ b/crypto/provider.c @@ -57,6 +57,15 @@ int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]) return ossl_provider_get_params(prov, params); } + +const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov, + int operation_id, + int *no_cache) +{ + return ossl_provider_query_operation(prov, operation_id, no_cache); +} + + int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *libctx, const char *name, OSSL_provider_init_fn *init_fn) { |