[erlang-questions] crypto:engine_list() returns empty list
Eugene Pirogov
iamexile@REDACTED
Thu Jan 18 17:43:05 CET 2018
Hi,
I'm running *crypto:engine_list()*, but it won't list any OpenSSL engines I
have installed. What can be the reason?
I can see the engine in the system by running the following:
# openssl engine -t gost
(gost) Reference implementation of GOST engine
[ available ]
# openssl engine -t dstu
(dstu) Reference implementation of DSTU engine
[ available ]
However when running from erl repl, I get this:
# erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.2 (abort with ^G)
1> crypto:engine_list().
[]
What's weird is that if I try to forcefully load the engine, it *works
sometimes.*
- it works with gost engine:
# erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.2 (abort with ^G)
1> {ok, Engine} = crypto:engine_load(<<"gost">>, [], []).
{ok,#Ref<0.950608548.1984823298.71941>}
- it does not work with dstu engine:
# erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10]
[async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.2 (abort with ^G)
1> {ok, Engine} = crypto:engine_load(<<"dstu">>, [], []).
** exception error: no match of right hand side value
{error,bad_engine_id}
What am I missing? How can I get to load dstu engine
<https://github.com/dstucrypt/openssl-dstu/commits/dstu-1_0_1h> in my case?
--
http://www.gmile.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180118/6f1a2403/attachment.htm>
More information about the erlang-questions
mailing list