]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/provider.h
Don't generate an unnecessary Diffie-Hellman key in TLS 1.3 clients.
[thirdparty/openssl.git] / include / openssl / provider.h
CommitLineData
3374dc03
RL
1/*
2 * Copyright 2019 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#ifndef OSSL_PROVIDER_H
11# define OSSL_PROVIDER_H
12
13# include <openssl/core.h>
14
15# ifdef __cplusplus
16extern "C" {
17# endif
18
19/* Load and unload a provider */
20OSSL_PROVIDER *OSSL_PROVIDER_load(OPENSSL_CTX *, const char *name);
21int OSSL_PROVIDER_unload(OSSL_PROVIDER *prov);
22
26175013 23const OSSL_PARAM *OSSL_PROVIDER_get_param_types(const OSSL_PROVIDER *prov);
4e7991b4 24int OSSL_PROVIDER_get_params(const OSSL_PROVIDER *prov, OSSL_PARAM params[]);
3374dc03
RL
25
26/* Add a built in providers */
27int OSSL_PROVIDER_add_builtin(OPENSSL_CTX *, const char *name,
28 OSSL_provider_init_fn *init_fn);
29
b37066fd
RL
30/* Information */
31const char *OSSL_PROVIDER_name(const OSSL_PROVIDER *prov);
32
3374dc03
RL
33# ifdef __cplusplus
34}
35# endif
36
37#endif