mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
c41f3ae0d9
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)
19 lines
551 B
C
19 lines
551 B
C
/*
|
|
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* 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>
|
|
|
|
struct predefined_providers_st {
|
|
const char *name;
|
|
OSSL_provider_init_fn *init;
|
|
unsigned int is_fallback:1;
|
|
};
|
|
|
|
extern const struct predefined_providers_st predefined_providers[];
|