engine icon indicating copy to clipboard operation
engine copied to clipboard

OpenSSL 3.1.4: undefined symbol: bind_engine

Open navrocky opened this issue 2 years ago • 1 comments

OS: Fresh OpenSUSE Tumbleweed OpenSSL: 3.1.4 Gost engine: v3.0.3

Engine installed to:

  • /usr/lib64/engines-3/gost.so
  • /usr/local/lib64/libgost.so

Changes in default config:

...

[ engine_section ]
...
gost = gost_section

[gost_section]
engine_id = gost
dynamic_path = /usr/local/lib64/libgost.so
default_algorithms = ALL

...

Error:

root@thinkbook:/etc/ssl> openssl version
FATAL: Startup failure (dev note: apps_startup()) for openssl
4047BCD7E07F0000:error:1280006A:DSO support routines:dlfcn_bind_func:could not bind to the requested symbol name:crypto/dso/dso_dlfcn.c:188:symname(bind_engine): /usr/local/lib64/libgost.so: undefined symbol: bind_engine
4047BCD7E07F0000:error:1280006A:DSO support routines:DSO_bind_func:could not bind to the requested symbol name:crypto/dso/dso_lib.c:176:
4047BCD7E07F0000:error:13000068:engine routines:dynamic_load:DSO failure:crypto/engine/eng_dyn.c:455:
4047BCD7E07F0000:error:13000066:engine routines:int_engine_configure:engine configuration error:crypto/engine/eng_cnf.c:139:section=gost_section, name=dynamic_path, value=/usr/local/lib64/libgost.so
4047BCD7E07F0000:error:0700006D:configuration file routines:module_run:module initialization error:crypto/conf/conf_mod.c:276:module=engines, value=engine_section retcode=-1

navrocky avatar Jun 18 '24 07:06 navrocky

Только что проехался по этим же граблям. Ошибка заключается в том, что в dynamic_path нужно указывать /usr/lib64/engines-3/gost.so а не libgost.so

0x0000-dot-ru avatar Sep 29 '24 12:09 0x0000-dot-ru