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

Add loaded dynamic ENGINEs to list.

Always add a dynamically loaded ENGINE to list. Otherwise it can cause
problems when multiply loaded, especially if it adds new public key methods.
For all current engines we only want a single implementation anyway.
上级 cbb67448
...@@ -408,6 +408,7 @@ ENGINE *ENGINE_by_id(const char *id) ...@@ -408,6 +408,7 @@ ENGINE *ENGINE_by_id(const char *id)
!ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0) || !ENGINE_ctrl_cmd_string(iterator, "DIR_LOAD", "2", 0) ||
!ENGINE_ctrl_cmd_string(iterator, "DIR_ADD", !ENGINE_ctrl_cmd_string(iterator, "DIR_ADD",
load_dir, 0) || load_dir, 0) ||
!ENGINE_ctrl_cmd_string(iterator, "LIST_ADD", "1", 0) ||
!ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0)) !ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0))
goto notfound; goto notfound;
return iterator; return iterator;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册