From 36f5ec55e69716024f70df53074a2871e091a3e1 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 17 Jul 2019 11:29:04 +0200 Subject: Add functions to see if a provider is available for use. Public function OSSL_PROVIDER_available() takes a library context and a provider name, and returns 1 if it's available for use, i.e. if it's possible to fetch implementations from it, otherwise 0. Internal function ossl_provider_activated() returns 1 if the given OSSL_PROVIDER is activated, otherwise 0. To make this possible, the activation of fallbacks got refactored out to a separate function, which ended up simplifying the code. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9398) --- util/libcrypto.num | 1 + 1 file changed, 1 insertion(+) (limited to 'util/libcrypto.num') diff --git a/util/libcrypto.num b/util/libcrypto.num index 1533a88a93..81462480ca 100644 --- a/util/libcrypto.num +++ b/util/libcrypto.num @@ -4699,3 +4699,4 @@ OSSL_PROVIDER_name 4804 3_0_0 EXIST::FUNCTION: EVP_CIPHER_do_all_ex 4805 3_0_0 EXIST::FUNCTION: EVP_MD_do_all_ex 4806 3_0_0 EXIST::FUNCTION: EVP_KEYEXCH_provider 4807 3_0_0 EXIST::FUNCTION: +OSSL_PROVIDER_available 4808 3_0_0 EXIST::FUNCTION: -- cgit v1.2.3