aboutsummaryrefslogtreecommitdiffstats
path: root/include/internal/symhacks.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-07-17 11:29:04 +0200
committerRichard Levitte <levitte@openssl.org>2019-07-26 18:14:41 +0200
commit36f5ec55e69716024f70df53074a2871e091a3e1 (patch)
treef8b0a1f6b8a846e6124ac91f50149f2f805395c4 /include/internal/symhacks.h
parent166c0b98fd6e8b1bb341397642527a9396468f6c (diff)
downloadopenssl-36f5ec55e69716024f70df53074a2871e091a3e1.tar.gz
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 <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9398)
Diffstat (limited to 'include/internal/symhacks.h')
-rw-r--r--include/internal/symhacks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/internal/symhacks.h b/include/internal/symhacks.h
index 2b09604619..6e8f78e642 100644
--- a/include/internal/symhacks.h
+++ b/include/internal/symhacks.h
@@ -14,6 +14,9 @@
# if defined(OPENSSL_SYS_VMS)
+/* ossl_provider_available vs OSSL_PROVIDER_available */
+# undef ossl_provider_available
+# define ossl_provider_available ossl_int_prov_available
/* ossl_provider_get_param_types vs OSSL_PROVIDER_get_param_types */
# undef ossl_provider_get_param_types
# define ossl_provider_get_param_types ossl_int_prov_get_param_types