[openssl] master update

Dr. Paul Dale pauli at openssl.org
Tue Apr 13 08:07:42 UTC 2021


The branch master has been updated
       via  0f10196042a4aa43b9b1966e0709060c5b8658bc (commit)
      from  b47e7bbc41f030598def90e83843cf6a97c7244b (commit)


- Log -----------------------------------------------------------------
commit 0f10196042a4aa43b9b1966e0709060c5b8658bc
Author: Petr Gotthard <petr.gotthard at centrum.cz>
Date:   Sat Apr 10 11:08:58 2021 +0200

    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 at ncp-e.com>
    Reviewed-by: Paul Dale <pauli at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/14818)

-----------------------------------------------------------------------

Summary of changes:
 apps/lib/app_provider.c | 1 +
 1 file changed, 1 insertion(+)

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)


More information about the openssl-commits mailing list