diff options
Diffstat (limited to 'src/lib/libcrypto/engine/eng_lib.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_lib.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/src/lib/libcrypto/engine/eng_lib.c b/src/lib/libcrypto/engine/eng_lib.c index a66d0f08af..5815b867f4 100644 --- a/src/lib/libcrypto/engine/eng_lib.c +++ b/src/lib/libcrypto/engine/eng_lib.c | |||
@@ -56,11 +56,8 @@ | |||
56 | * | 56 | * |
57 | */ | 57 | */ |
58 | 58 | ||
59 | #include <openssl/crypto.h> | ||
60 | #include "cryptlib.h" | ||
61 | #include "eng_int.h" | 59 | #include "eng_int.h" |
62 | #include <openssl/rand.h> /* FIXME: This shouldn't be needed */ | 60 | #include <openssl/rand.h> |
63 | #include <openssl/engine.h> | ||
64 | 61 | ||
65 | /* The "new"/"free" stuff first */ | 62 | /* The "new"/"free" stuff first */ |
66 | 63 | ||
@@ -92,6 +89,7 @@ void engine_set_all_null(ENGINE *e) | |||
92 | e->dsa_meth = NULL; | 89 | e->dsa_meth = NULL; |
93 | e->dh_meth = NULL; | 90 | e->dh_meth = NULL; |
94 | e->rand_meth = NULL; | 91 | e->rand_meth = NULL; |
92 | e->store_meth = NULL; | ||
95 | e->ciphers = NULL; | 93 | e->ciphers = NULL; |
96 | e->digests = NULL; | 94 | e->digests = NULL; |
97 | e->destroy = NULL; | 95 | e->destroy = NULL; |
@@ -110,7 +108,7 @@ int engine_free_util(ENGINE *e, int locked) | |||
110 | 108 | ||
111 | if(e == NULL) | 109 | if(e == NULL) |
112 | { | 110 | { |
113 | ENGINEerr(ENGINE_F_ENGINE_FREE, | 111 | ENGINEerr(ENGINE_F_ENGINE_FREE_UTIL, |
114 | ERR_R_PASSED_NULL_PARAMETER); | 112 | ERR_R_PASSED_NULL_PARAMETER); |
115 | return 0; | 113 | return 0; |
116 | } | 114 | } |
@@ -319,3 +317,13 @@ const ENGINE_CMD_DEFN *ENGINE_get_cmd_defns(const ENGINE *e) | |||
319 | { | 317 | { |
320 | return e->cmd_defns; | 318 | return e->cmd_defns; |
321 | } | 319 | } |
320 | |||
321 | /* eng_lib.o is pretty much linked into anything that touches ENGINE already, so | ||
322 | * put the "static_state" hack here. */ | ||
323 | |||
324 | static int internal_static_hack = 0; | ||
325 | |||
326 | void *ENGINE_get_static_state(void) | ||
327 | { | ||
328 | return &internal_static_hack; | ||
329 | } | ||