projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
If dynamically-loadable ENGINEs are linked against a shared-library version
[openssl.git]
/
crypto
/
engine
/
eng_lib.c
diff --git
a/crypto/engine/eng_lib.c
b/crypto/engine/eng_lib.c
index a66d0f08af26d8293aa768897138fb0a2f2ff365..999061a8ed828c2a763505462e15522cee122b7f 100644
(file)
--- a/
crypto/engine/eng_lib.c
+++ b/
crypto/engine/eng_lib.c
@@
-319,3
+319,13
@@
const ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e)
{
return e->cmd_defns;
}
{
return e->cmd_defns;
}
+
+/* eng_lib.o is pretty much linked into anything that touches ENGINE already, so
+ * put the "static_state" hack here. */
+
+static int internal_static_hack = 0;
+
+void *ENGINE_get_static_state(void)
+ {
+ return &internal_static_hack;
+ }