summaryrefslogtreecommitdiffstats
path: root/providers/defltprov.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-11-18 01:50:18 +0100
committerRichard Levitte <levitte@openssl.org>2019-11-29 20:55:16 +0100
commit63665fff84a4c79cd2acece4409036699f2e44a7 (patch)
tree27946d4d24fde90316ad41d89989f4dbe46ee79f /providers/defltprov.c
parent54c1711f87cdc50e2266e2f0a063ccace08173d2 (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.c3
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: