aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/engine/eng_list.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2014-01-28 13:51:58 +0000
committerDr. Stephen Henson <steve@openssl.org>2014-01-28 13:51:58 +0000
commite933f91f50108a43c0198cdc63ecdfdbc77b4d0d (patch)
treefbc844e21b435095dc28678e2b5d6be809f422d8 /crypto/engine/eng_list.c
parentcbb67448277232c8403f96edad4931c4203e7746 (diff)
downloadopenssl-e933f91f50108a43c0198cdc63ecdfdbc77b4d0d.tar.gz
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.
Diffstat (limited to 'crypto/engine/eng_list.c')
-rw-r--r--crypto/engine/eng_list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/engine/eng_list.c b/crypto/engine/eng_list.c
index 27846edb1e..95c858960b 100644
--- a/crypto/engine/eng_list.c
+++ b/crypto/engine/eng_list.c
@@ -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_ADD",
load_dir, 0) ||
+ !ENGINE_ctrl_cmd_string(iterator, "LIST_ADD", "1", 0) ||
!ENGINE_ctrl_cmd_string(iterator, "LOAD", NULL, 0))
goto notfound;
return iterator;