2019-03-18 01:06:59 +08:00
|
|
|
/*
|
2021-04-08 20:04:41 +08:00
|
|
|
* Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved.
|
2019-03-18 01:06:59 +08:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <openssl/core.h>
|
|
|
|
|
2021-06-18 22:56:54 +08:00
|
|
|
typedef struct {
|
|
|
|
char *name;
|
|
|
|
char *value;
|
|
|
|
} INFOPAIR;
|
|
|
|
DEFINE_STACK_OF(INFOPAIR)
|
|
|
|
|
2021-06-21 22:59:41 +08:00
|
|
|
typedef struct {
|
2021-06-18 19:28:40 +08:00
|
|
|
char *name;
|
2021-06-18 22:56:54 +08:00
|
|
|
char *path;
|
2019-03-18 01:06:59 +08:00
|
|
|
OSSL_provider_init_fn *init;
|
2021-06-18 22:56:54 +08:00
|
|
|
STACK_OF(INFOPAIR) *parameters;
|
2019-03-18 01:06:59 +08:00
|
|
|
unsigned int is_fallback:1;
|
2021-06-21 22:59:41 +08:00
|
|
|
} OSSL_PROVIDER_INFO;
|
2019-03-18 01:06:59 +08:00
|
|
|
|
2021-06-21 22:59:41 +08:00
|
|
|
extern const OSSL_PROVIDER_INFO ossl_predefined_providers[];
|
2021-06-18 22:56:54 +08:00
|
|
|
|
2021-06-21 22:59:41 +08:00
|
|
|
void ossl_provider_info_clear(OSSL_PROVIDER_INFO *info);
|
2021-06-18 22:56:54 +08:00
|
|
|
int ossl_provider_info_add_to_store(OSSL_LIB_CTX *libctx,
|
2021-06-21 22:59:41 +08:00
|
|
|
OSSL_PROVIDER_INFO *entry);
|
|
|
|
int ossl_provider_info_add_parameter(OSSL_PROVIDER_INFO *provinfo,
|
2021-06-18 22:56:54 +08:00
|
|
|
const char *name,
|
|
|
|
const char *value);
|