summaryrefslogtreecommitdiffstats
path: root/crypto/provider.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-05-18 15:13:09 +0100
committerMatt Caswell <matt@openssl.org>2020-06-19 10:19:31 +0100
commit82ec09ec6d4e35ef359a7cb22c0cb46662f18155 (patch)
tree79986b46b4b7d26cbbd95318c65b97b4d447f7b7 /crypto/provider.c
parent72bfc9585891cffd29eb683ae5fb3181d62b9d33 (diff)
Add the OSSL_PROVIDER_get_capabilities() API function
Provide a function to applications to query the capabilities that a provider can perform. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11914)
Diffstat (limited to 'crypto/provider.c')
-rw-r--r--crypto/provider.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/crypto/provider.c b/crypto/provider.c
index 02002a5f95..8646aef771 100644
--- a/crypto/provider.c
+++ b/crypto/provider.c
@@ -57,7 +57,6 @@ 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)
@@ -70,6 +69,14 @@ void *OSSL_PROVIDER_get0_provider_ctx(const OSSL_PROVIDER *prov)
return ossl_provider_prov_ctx(prov);
}
+int OSSL_PROVIDER_get_capabilities(const OSSL_PROVIDER *prov,
+ const char *capability,
+ OSSL_CALLBACK *cb,
+ void *arg)
+{
+ return ossl_provider_get_capabilities(prov, capability, cb, arg);
+}
+
int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *libctx, const char *name,
OSSL_provider_init_fn *init_fn)
{