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