提交 8a1956f3 编写于 作者: D Dr. Stephen Henson

Don't use rdrand engine as default unless explicitly requested.

(cherry picked from commit 16898401bd47a153fbf799127ff57fdcfcbd324f)
上级 e3bc1f49
...@@ -104,6 +104,7 @@ static int bind_helper(ENGINE *e) ...@@ -104,6 +104,7 @@ static int bind_helper(ENGINE *e)
{ {
if (!ENGINE_set_id(e, engine_e_rdrand_id) || if (!ENGINE_set_id(e, engine_e_rdrand_id) ||
!ENGINE_set_name(e, engine_e_rdrand_name) || !ENGINE_set_name(e, engine_e_rdrand_name) ||
!ENGINE_set_flags(e, ENGINE_FLAGS_NO_REGISTER_ALL) ||
!ENGINE_set_init_function(e, rdrand_init) || !ENGINE_set_init_function(e, rdrand_init) ||
!ENGINE_set_RAND(e, &rdrand_meth) ) !ENGINE_set_RAND(e, &rdrand_meth) )
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册