mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-01 12:09:42 +00:00
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)
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/*
|
|
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
#ifndef OSSL_INTERNAL_SYMHACKS_H
|
|
# define OSSL_INTERNAL_SYMHACKS_H
|
|
|
|
# include <openssl/e_os2.h>
|
|
|
|
# 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
|
|
/* ossl_provider_get_params vs OSSL_PROVIDER_get_params */
|
|
# undef ossl_provider_get_params
|
|
# define ossl_provider_get_params ossl_int_prov_get_params
|
|
|
|
# endif
|
|
|
|
#endif /* ! defined HEADER_VMS_IDHACKS_H */
|