diff options
author | Matt Caswell <matt@openssl.org> | 2020-06-26 20:40:11 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-07-08 08:55:56 +0100 |
commit | 08a1c9f2e6e28a81936e51019b89e842a1a90b31 (patch) | |
tree | fcd64f3d6a4951c6a50d74e00291496526c649a6 /crypto/provider_core.c | |
parent | 163b8016160f03558d8352b76fb594685cb39f7d (diff) |
Fix OSSL_PROVIDER_get_capabilities()
It is not a failure to call OSSL_PROVIDER_get_capabilities() with a
provider loaded that has no capabilities.
Fixes #12286
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12292)
Diffstat (limited to 'crypto/provider_core.c')
-rw-r--r-- | crypto/provider_core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/provider_core.c b/crypto/provider_core.c index a2350bb88e..f68fd8f0f9 100644 --- a/crypto/provider_core.c +++ b/crypto/provider_core.c @@ -831,7 +831,7 @@ int ossl_provider_get_capabilities(const OSSL_PROVIDER *prov, void *arg) { return prov->get_capabilities == NULL - ? 0 : prov->get_capabilities(prov->provctx, capability, cb, arg); + ? 1 : prov->get_capabilities(prov->provctx, capability, cb, arg); } |