xref: /freebsd/crypto/openssl/include/crypto/context.h (revision e7be843b4a162e68651d3911f0357ed464915629)
1 /*
2  * Copyright 2022-2024 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/core.h>
11 
12 void *ossl_provider_store_new(OSSL_LIB_CTX *);
13 void *ossl_property_string_data_new(OSSL_LIB_CTX *);
14 void *ossl_stored_namemap_new(OSSL_LIB_CTX *);
15 void *ossl_property_defns_new(OSSL_LIB_CTX *);
16 void *ossl_ctx_global_properties_new(OSSL_LIB_CTX *);
17 void *ossl_rand_ctx_new(OSSL_LIB_CTX *);
18 void *ossl_prov_conf_ctx_new(OSSL_LIB_CTX *);
19 void *ossl_bio_core_globals_new(OSSL_LIB_CTX *);
20 void *ossl_child_prov_ctx_new(OSSL_LIB_CTX *);
21 void *ossl_prov_drbg_nonce_ctx_new(OSSL_LIB_CTX *);
22 void *ossl_self_test_set_callback_new(OSSL_LIB_CTX *);
23 void *ossl_indicator_set_callback_new(OSSL_LIB_CTX *);
24 void *ossl_rand_crng_ctx_new(OSSL_LIB_CTX *);
25 int ossl_thread_register_fips(OSSL_LIB_CTX *);
26 void *ossl_thread_event_ctx_new(OSSL_LIB_CTX *);
27 void *ossl_fips_prov_ossl_ctx_new(OSSL_LIB_CTX *);
28 #if defined(OPENSSL_THREADS)
29 void *ossl_threads_ctx_new(OSSL_LIB_CTX *);
30 #endif
31 
32 void ossl_provider_store_free(void *);
33 void ossl_property_string_data_free(void *);
34 void ossl_stored_namemap_free(void *);
35 void ossl_property_defns_free(void *);
36 void ossl_ctx_global_properties_free(void *);
37 void ossl_rand_ctx_free(void *);
38 void ossl_prov_conf_ctx_free(void *);
39 void ossl_bio_core_globals_free(void *);
40 void ossl_child_prov_ctx_free(void *);
41 void ossl_prov_drbg_nonce_ctx_free(void *);
42 void ossl_indicator_set_callback_free(void *cb);
43 void ossl_self_test_set_callback_free(void *);
44 void ossl_rand_crng_ctx_free(void *);
45 void ossl_thread_event_ctx_free(void *);
46 void ossl_fips_prov_ossl_ctx_free(void *);
47 void ossl_release_default_drbg_ctx(void);
48 #if defined(OPENSSL_THREADS)
49 void ossl_threads_ctx_free(void *);
50 #endif
51