Replumbing: Add a mechanism to pre-populate the provider store
authorRichard Levitte <levitte@openssl.org>
Sun, 17 Mar 2019 17:06:59 +0000 (18:06 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 19 Mar 2019 13:06:58 +0000 (14:06 +0100)
commitc41f3ae0d92a87b903a9ed585622adae06791676
tree8e60899b2cb0a613068c50686abf147076ba6f8c
parente55008a9f2ae299374dcf868b660389e84dd2e0b
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 <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8480)
crypto/build.info
crypto/cpt_err.c
crypto/err/openssl.txt
crypto/provider_core.c
crypto/provider_local.h [new file with mode: 0644]
crypto/provider_predefined.c [new file with mode: 0644]
include/openssl/cryptoerr.h