Hi,

now that I had first contact with engines, I thought it might be
better to give them some testing.

It turns out that loading the engines works fine, but there are three
engines which don't work, and it seems to me that this isn't a Cygwin
specific problem.

These three engines don't load:

  lib4758_cca.so
  libgmp.so
  libncipher.so

One of them is not a mystery.  libgmp.so is just empty, because
OPENSSL_USE_GMP wasn't set when building.  So that can be ignored.

However, I found that lib4758_cca.so and libncipher.so don't load,
because the engine id differs from the engine name.

The engine id of lib4758_cca.so is "4758cca" instead of "4758_cca",
the id of libncipher.so is "chil" instead of "ncipher".

The result is this.  If I try, for instance, to open the engine "ncipher"
with openssl:

  OpenSSL> engine ncipher
  1608:error:260B606D:engine routines:DYNAMIC_LOAD:init failed:eng_dyn.c:521:
  1608:error:2606A074:engine routines:ENGINE_by_id:no such 
engine:eng_list.c:411:id=ncipher

This is because the loaded bind function bind_fn() rejects being
initialized, because the incoming id "ncipher" is not equal the engine's
own id engine_hwcrhk_id == "chil".

OTOH, when trying to load an engine "chil", this happens:

  OpenSSL> engine chil
  3668:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared 
library:dso_dlfcn.c:162:filename(/usr/lib/engines/libchil.so): dlopen, Win32 
error 126
  3668:error:25070067:DSO support routines:DSO_load:could not load the shared 
library:dso_lib.c:244:
  3668:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
  3668:error:2606A074:engine routines:ENGINE_by_id:no such 
engine:eng_list.c:411:id=chil

It tries to open an engine called libchil.so, which isn't present.
The problem is equivalent for lib4758_cca.so.

So it seems, either the engine ids are just wrong and should be changed,
or the names of the created shared libs is wrong and should be changed.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat, Inc.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to