From c41f3ae0d92a87b903a9ed585622adae06791676 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Sun, 17 Mar 2019 18:06:59 +0100 Subject: Replumbing: Add a mechanism to pre-populate the provider store OpenSSL will come with a set of well known providers, some of which need to be accessible from the start. These are typically built in providers, or providers that will work as fallbacks. We do this when creating a new provider store, which means that this will happen in every library context, regardless of if it's the global default one, or an explicitely created one. We keep the data about the known providers we want to make accessible this way in crypto/provider_predefined.h, which may become generated. For now, though, we make it simple and edited manually. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8480) --- crypto/cpt_err.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crypto/cpt_err.c') diff --git a/crypto/cpt_err.c b/crypto/cpt_err.c index 88bee489f2..3c3265dce5 100644 --- a/crypto/cpt_err.c +++ b/crypto/cpt_err.c @@ -59,6 +59,9 @@ static const ERR_STRING_DATA CRYPTO_str_functs[] = { "pkey_siphash_init"}, {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_PROVIDER_ACTIVATE, 0), "provider_activate"}, + {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_PROVIDER_NEW, 0), "provider_new"}, + {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_PROVIDER_STORE_NEW, 0), + "provider_store_new"}, {ERR_PACK(ERR_LIB_CRYPTO, CRYPTO_F_SK_RESERVE, 0), "sk_reserve"}, {0, NULL} }; -- cgit v1.2.1