xref: /freebsd-src/crypto/openssl/providers/common/include/prov/providercommon.h (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
3*b077aed3SPierre Pronchery  *
4*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (the "License").  You may not use
5*b077aed3SPierre Pronchery  * this file except in compliance with the License.  You can obtain a copy
6*b077aed3SPierre Pronchery  * in the file LICENSE in the source distribution or at
7*b077aed3SPierre Pronchery  * https://www.openssl.org/source/license.html
8*b077aed3SPierre Pronchery  */
9*b077aed3SPierre Pronchery 
10*b077aed3SPierre Pronchery #include <openssl/provider.h>
11*b077aed3SPierre Pronchery #include <openssl/core_dispatch.h>
12*b077aed3SPierre Pronchery 
13*b077aed3SPierre Pronchery const OSSL_CORE_HANDLE *FIPS_get_core_handle(OSSL_LIB_CTX *ctx);
14*b077aed3SPierre Pronchery 
15*b077aed3SPierre Pronchery int ossl_cipher_capable_aes_cbc_hmac_sha1(void);
16*b077aed3SPierre Pronchery int ossl_cipher_capable_aes_cbc_hmac_sha256(void);
17*b077aed3SPierre Pronchery 
18*b077aed3SPierre Pronchery OSSL_FUNC_provider_get_capabilities_fn ossl_prov_get_capabilities;
19*b077aed3SPierre Pronchery 
20*b077aed3SPierre Pronchery /* Set the error state if this is a FIPS module */
21*b077aed3SPierre Pronchery void ossl_set_error_state(const char *type);
22*b077aed3SPierre Pronchery 
23*b077aed3SPierre Pronchery /* Return true if the module is in a usable condition */
24*b077aed3SPierre Pronchery int ossl_prov_is_running(void);
25