diff options
author | Matt Caswell <matt@openssl.org> | 2020-05-08 17:44:02 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-05 11:31:46 +0200 |
commit | d01d375264e73f49a416409e2f8febe88ad39c8a (patch) | |
tree | 8ca54fb81fe6e81cceee2e4b713676a0059edfba /crypto/provider.c | |
parent | Enable applications to directly call a provider's query operation (diff) | |
download | openssl-d01d375264e73f49a416409e2f8febe88ad39c8a.tar.xz openssl-d01d375264e73f49a416409e2f8febe88ad39c8a.zip |
Implement OSSL_PROVIDER_get0_provider_ctx()
Implement a function which enables us to get hold of the provider ctx
for a loaded provider.
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/provider.c b/crypto/provider.c index 6b029ecced..02002a5f95 100644 --- a/crypto/provider.c +++ b/crypto/provider.c @@ -65,6 +65,10 @@ const OSSL_ALGORITHM *OSSL_PROVIDER_query_operation(const OSSL_PROVIDER *prov, return ossl_provider_query_operation(prov, operation_id, no_cache); } +void *OSSL_PROVIDER_get0_provider_ctx(const OSSL_PROVIDER *prov) +{ + return ossl_provider_prov_ctx(prov); +} int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *libctx, const char *name, OSSL_provider_init_fn *init_fn) |