[openssl-dev] [openssl.org #4093] AutoReply: Problem loading engine from config

Dmitry Belyavsky via RT rt at openssl.org
Wed Oct 14 19:29:42 UTC 2015


Hello!

The attached patch fixes it.

On Wed, Oct 14, 2015 at 10:10 PM, The default queue via RT <rt at openssl.org>
wrote:

>
> Greetings,
>
> This message has been automatically generated in response to the
> creation of a trouble ticket regarding:
>         "Problem loading engine from config",
> a summary of which appears below.
>
> There is no need to reply to this message right now.  Your ticket has been
> assigned an ID of [openssl.org #4093].
>
> Please include the string:
>
>          [openssl.org #4093]
>
> in the subject line of all future correspondence about this issue. To do
> so,
> you may reply to this message.
>
>                         Thank you,
>                         rt at openssl.org
>
> -------------------------------------------------------------------------
> Hello,
>
> I have a problem when I load an engine from config file in master.
>
> OpenSSL cmdline: /home/build/openssl-shell/openssl/apps/openssl dgst
> -md_gost94 dgst.dat
>
> Error configuring OpenSSL modules
> 47445915269832:error:25066067:DSO support routines:DLFCN_LOAD:could not
> load the shared library:dso_dlfcn.c:172:filename(libengines.so):
> libengines.so: cannot open shared object file: No such file or directory
> 47445915269832:error:25070067:DSO support routines:DSO_load:could not load
> the shared library:dso_lib.c:227:
> 47445915269832:error:0E07506E:configuration file
> routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:270:module=engines,
> path=engines
> 47445915269832:error:0E076071:configuration file
> routines:MODULE_RUN:unknown module name:conf_mod.c:212:module=engines
>
> The openssl.cnf file I use is:
>
> ========
> openssl_conf = openssl_def
> [openssl_def]
> engines = engine_section
> [engine_section]
> gost=gost_section
> [gost_section]
> dynamic_path=/home/build/openssl-shell/openssl/engines/ccgost/libgost.so
> engine_id=gost
> default_algorithms = ALL
> ========
>
> The gost engine I build is from the master.
>
> If I delete the lines
> ========
> engines = engine_section
> [engine_section]
> ========
> I get another error:
>
> dgst: Unknown digest md_gost94
> dgst: Use -help for summary.
>
> The behavior seems to be changed after the commit
>
> https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a0a82324f965bbcc4faed4e1ee3fcaf81ea52166
>
> Thank you!
>
> --
> SY, Dmitry Belyavsky
>
>


-- 
SY, Dmitry Belyavsky

-------------- next part --------------
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -175,6 +175,10 @@ static int apps_startup()
     ERR_load_crypto_strings();
     ERR_load_SSL_strings();
 
+    OPENSSL_load_builtin_modules();
+#ifndef OPENSSL_NO_ENGINE
+    ENGINE_load_builtin_engines();
+#endif
     if (!app_load_modules(NULL)) {
         ERR_print_errors(bio_err);
         BIO_printf(bio_err, "Error loading default configuration\n");
@@ -183,12 +187,8 @@ static int apps_startup()
 
     OpenSSL_add_all_algorithms();
     OpenSSL_add_ssl_algorithms();
-    OPENSSL_load_builtin_modules();
     setup_ui_method();
     /*SSL_library_init();*/
-#ifndef OPENSSL_NO_ENGINE
-    ENGINE_load_builtin_engines();
-#endif
     return 1;
 }
 



More information about the openssl-dev mailing list