]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/provider.h
Add OSSL_PROVIDER_do_all()
[thirdparty/openssl.git] / include / openssl / provider.h
CommitLineData
3374dc03 1/*
33388b44 2 * Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.
3374dc03
RL
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
ae4186b0
DMSP
10#ifndef OPENSSL_PROVIDER_H
11# define OPENSSL_PROVIDER_H
3374dc03
RL
12
13# include <openssl/core.h>
14
15# ifdef __cplusplus
16extern "C" {
17# endif
18
6bd4e3f2
P
19/* Set the default provider search path */
20int OSSL_PROVIDER_set_default_search_path(OPENSSL_CTX *, const char *path);
21
3374dc03
RL
22/* Load and unload a provider */
23OSSL_PROVIDER *OSSL_PROVIDER_load(OPENSSL_CTX *, const char *name);
24int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov);
36f5ec55 25int OSSL_PROVIDER_available(OPENSSL_CTX *, const char *name);
a7ad40c5
RL
26int OSSL_PROVIDER_do_all(OPENSSL_CTX *ctx,
27 int (*cb)(OSSL_PROVIDER *provider, void *cbdata),
28 void *cbdata);
3374dc03 29
dca97d00 30const OSSL_PARAM *OSSL_PROVIDER_gettable_params(const OSSL_PROVIDER *prov);
4e7991b4 31int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]);
3374dc03
RL
32
33/* Add a built in providers */
34int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *, const char *name,
35 OSSL_provider_init_fn *init_fn);
36
b37066fd
RL
37/* Information */
38const char *OSSL_PROVIDER_name(const OSSL_PROVIDER *prov);
39
3374dc03
RL
40# ifdef __cplusplus
41}
42# endif
43
44#endif