| 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/core.h> |
| 11 |
|
| 12 |
typedef struct { |
| 13 |
char *name; |
| 14 |
char *value; |
| 15 |
} INFOPAIR; |
| 16 |
DEFINE_STACK_OF(INFOPAIR) |
| 17 |
|
| 18 |
typedef struct { |
| 19 |
char *name; |
| 20 |
char *path; |
| 21 |
OSSL_provider_init_fn *init; |
| 22 |
STACK_OF(INFOPAIR) *parameters; |
| 23 |
unsigned int is_fallback : 1; |
| 24 |
} OSSL_PROVIDER_INFO; |
| 25 |
|
| 26 |
extern const OSSL_PROVIDER_INFO ossl_predefined_providers[]; |
| 27 |
|
| 28 |
void ossl_provider_info_clear(OSSL_PROVIDER_INFO *info); |
| 29 |
int ossl_provider_info_add_to_store(OSSL_LIB_CTX *libctx, |
| 30 |
OSSL_PROVIDER_INFO *entry); |
| 31 |
int ossl_provider_info_add_parameter(OSSL_PROVIDER_INFO *provinfo, |
| 32 |
const char *name, |
| 33 |
const char *value); |