]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/provider_local.h
Fix memory leak in BN_rand_range()
[thirdparty/openssl.git] / crypto / provider_local.h
CommitLineData
c41f3ae0 1/*
3c2bdd7d 2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
c41f3ae0
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
10#include <openssl/core.h>
11
352d482a
MC
12typedef struct {
13 char *name;
14 char *value;
15} INFOPAIR;
16DEFINE_STACK_OF(INFOPAIR)
17
b7248964 18typedef struct {
1d74203c 19 char *name;
352d482a 20 char *path;
c41f3ae0 21 OSSL_provider_init_fn *init;
352d482a 22 STACK_OF(INFOPAIR) *parameters;
c41f3ae0 23 unsigned int is_fallback:1;
b7248964 24} OSSL_PROVIDER_INFO;
c41f3ae0 25
b7248964 26extern const OSSL_PROVIDER_INFO ossl_predefined_providers[];
352d482a 27
b7248964 28void ossl_provider_info_clear(OSSL_PROVIDER_INFO *info);
352d482a 29int ossl_provider_info_add_to_store(OSSL_LIB_CTX *libctx,
b7248964
MC
30 OSSL_PROVIDER_INFO *entry);
31int ossl_provider_info_add_parameter(OSSL_PROVIDER_INFO *provinfo,
352d482a
MC
32 const char *name,
33 const char *value);