diff options
author | Richard Levitte <levitte@openssl.org> | 2019-11-18 01:50:18 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-11-29 20:55:16 +0100 |
commit | 63665fff84a4c79cd2acece4409036699f2e44a7 (patch) | |
tree | 27946d4d24fde90316ad41d89989f4dbe46ee79f /providers/defltprov.c | |
parent | 54c1711f87cdc50e2266e2f0a063ccace08173d2 (diff) |
PROV BIO: add a BIO_vprintf() upcall, and a provider BIO library
The BIO_vprintf() will allow the provider to print any text, given a
BIO supplied by libcrypto.
Additionally, we add a provider library with functions to collect all
the currently supplied BIO upcalls, as well as wrappers around those
upcalls.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10394)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r-- | providers/defltprov.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c index 354c7a4a6d..51d3d52ee9 100644 --- a/providers/defltprov.c +++ b/providers/defltprov.c @@ -14,6 +14,7 @@ #include <openssl/core_numbers.h> #include <openssl/core_names.h> #include <openssl/params.h> +#include "prov/bio.h" #include "prov/implementations.h" /* Functions provided by the core */ @@ -427,6 +428,8 @@ int ossl_default_provider_init(const OSSL_PROVIDER *provider, { OSSL_core_get_library_context_fn *c_get_libctx = NULL; + if (!ossl_prov_bio_from_dispatch(in)) + return 0; for (; in->function_id != 0; in++) { switch (in->function_id) { case OSSL_FUNC_CORE_GETTABLE_PARAMS: |