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#include "provider_local.h" 12e1051a39Sopenharmony_ci 13e1051a39Sopenharmony_ciOSSL_provider_init_fn ossl_default_provider_init; 14e1051a39Sopenharmony_ciOSSL_provider_init_fn ossl_base_provider_init; 15e1051a39Sopenharmony_ciOSSL_provider_init_fn ossl_null_provider_init; 16e1051a39Sopenharmony_ciOSSL_provider_init_fn ossl_fips_intern_provider_init; 17e1051a39Sopenharmony_ci#ifdef STATIC_LEGACY 18e1051a39Sopenharmony_ciOSSL_provider_init_fn ossl_legacy_provider_init; 19e1051a39Sopenharmony_ci#endif 20e1051a39Sopenharmony_ciconst OSSL_PROVIDER_INFO ossl_predefined_providers[] = { 21e1051a39Sopenharmony_ci#ifdef FIPS_MODULE 22e1051a39Sopenharmony_ci { "fips", NULL, ossl_fips_intern_provider_init, NULL, 1 }, 23e1051a39Sopenharmony_ci#else 24e1051a39Sopenharmony_ci { "default", NULL, ossl_default_provider_init, NULL, 1 }, 25e1051a39Sopenharmony_ci# ifdef STATIC_LEGACY 26e1051a39Sopenharmony_ci { "legacy", NULL, ossl_legacy_provider_init, NULL, 0 }, 27e1051a39Sopenharmony_ci# endif 28e1051a39Sopenharmony_ci { "base", NULL, ossl_base_provider_init, NULL, 0 }, 29e1051a39Sopenharmony_ci { "null", NULL, ossl_null_provider_init, NULL, 0 }, 30e1051a39Sopenharmony_ci#endif 31e1051a39Sopenharmony_ci { NULL, NULL, NULL, NULL, 0 } 32e1051a39Sopenharmony_ci}; 33