1e1051a39Sopenharmony_ci/* 2e1051a39Sopenharmony_ci * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 3e1051a39Sopenharmony_ci * 4e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License"). You may not use 5e1051a39Sopenharmony_ci * this file except in compliance with the License. You can obtain a copy 6e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at 7e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html 8e1051a39Sopenharmony_ci */ 9e1051a39Sopenharmony_ci 10e1051a39Sopenharmony_ci#include <openssl/core.h> 11e1051a39Sopenharmony_ci 12e1051a39Sopenharmony_citypedef struct { 13e1051a39Sopenharmony_ci char *name; 14e1051a39Sopenharmony_ci char *value; 15e1051a39Sopenharmony_ci} INFOPAIR; 16e1051a39Sopenharmony_ciDEFINE_STACK_OF(INFOPAIR) 17e1051a39Sopenharmony_ci 18e1051a39Sopenharmony_citypedef struct { 19e1051a39Sopenharmony_ci char *name; 20e1051a39Sopenharmony_ci char *path; 21e1051a39Sopenharmony_ci OSSL_provider_init_fn *init; 22e1051a39Sopenharmony_ci STACK_OF(INFOPAIR) *parameters; 23e1051a39Sopenharmony_ci unsigned int is_fallback:1; 24e1051a39Sopenharmony_ci} OSSL_PROVIDER_INFO; 25e1051a39Sopenharmony_ci 26e1051a39Sopenharmony_ciextern const OSSL_PROVIDER_INFO ossl_predefined_providers[]; 27e1051a39Sopenharmony_ci 28e1051a39Sopenharmony_civoid ossl_provider_info_clear(OSSL_PROVIDER_INFO *info); 29e1051a39Sopenharmony_ciint ossl_provider_info_add_to_store(OSSL_LIB_CTX *libctx, 30e1051a39Sopenharmony_ci OSSL_PROVIDER_INFO *entry); 31e1051a39Sopenharmony_ciint ossl_provider_info_add_parameter(OSSL_PROVIDER_INFO *provinfo, 32e1051a39Sopenharmony_ci const char *name, 33e1051a39Sopenharmony_ci const char *value); 34