aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorPetr Gotthard <petr.gotthard@centrum.cz>2021-04-10 11:08:58 +0200
committerPauli <pauli@openssl.org>2021-04-13 18:07:18 +1000
commit0f10196042a4aa43b9b1966e0709060c5b8658bc (patch)
treee138fa616ff57010fdf8c9db9ccf4d3ce1aa0c7a /apps
parentb47e7bbc41f030598def90e83843cf6a97c7244b (diff)
downloadopenssl-0f10196042a4aa43b9b1966e0709060c5b8658bc.tar.gz
apps: call ERR_print_errors when OSSL_PROVIDER_load fails
The ERR_print_errors often displays the reason why the provider couldn't be loaded. Hence it is quite important for debugging. Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14818)
Diffstat (limited to 'apps')
-rw-r--r--apps/lib/app_provider.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/lib/app_provider.c b/apps/lib/app_provider.c
index 5683866377..fd7d55c09b 100644
--- a/apps/lib/app_provider.c
+++ b/apps/lib/app_provider.c
@@ -35,6 +35,7 @@ int app_provider_load(OSSL_LIB_CTX *libctx, const char *provider_name)
if (prov == NULL) {
opt_printf_stderr("%s: unable to load provider %s\n",
opt_getprog(), provider_name);
+ ERR_print_errors(bio_err);
return 0;
}
if (app_providers == NULL)