[openssl] master update

beldmit at gmail.com beldmit at gmail.com
Wed Apr 15 08:10:10 UTC 2020


The branch master has been updated
       via  a5c864ce901483d6f1067c22cb7c0a6322d351f5 (commit)
      from  9bf475fcf366c386d8757c6c6fd9f9313a0b310a (commit)


- Log -----------------------------------------------------------------
commit a5c864ce901483d6f1067c22cb7c0a6322d351f5
Author: Shane Lontis <shane.lontis at oracle.com>
Date:   Tue Apr 14 12:25:34 2020 +1000

    Fix Dynamic engine loading so that the call to ENGINE_load_builtin_engines() is performed.
    
    Fixes #11510
    
    PR #11240 Added support for passing the libctx to the config loader.
    As part of this work the call to OPENSSL_load_builtin_modules() + ENGINE_load_builtin_engines() was deferred until module_run() is called.
    The call to ENGINE_load_builtin_engines() has been added to ENGINE_by_id().
    
    Reviewed-by: Matt Caswell <matt at openssl.org>
    Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
    (Merged from https://github.com/openssl/openssl/pull/11543)

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

Summary of changes:
 crypto/engine/eng_list.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c
index 7659231e56..4bd0059233 100644
--- a/crypto/engine/eng_list.c
+++ b/crypto/engine/eng_list.c
@@ -282,6 +282,8 @@ ENGINE *ENGINE_by_id(const char *id)
         ENGINEerr(ENGINE_F_ENGINE_BY_ID, ERR_R_PASSED_NULL_PARAMETER);
         return NULL;
     }
+    ENGINE_load_builtin_engines();
+
     if (!RUN_ONCE(&engine_lock_init, do_engine_lock_init)) {
         ENGINEerr(ENGINE_F_ENGINE_BY_ID, ERR_R_MALLOC_FAILURE);
         return NULL;


More information about the openssl-commits mailing list