summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/engine/eng_ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/engine/eng_ctrl.c')
-rw-r--r--src/lib/libcrypto/engine/eng_ctrl.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/libcrypto/engine/eng_ctrl.c b/src/lib/libcrypto/engine/eng_ctrl.c
index 95b6b455aa..412c73fb0f 100644
--- a/src/lib/libcrypto/engine/eng_ctrl.c
+++ b/src/lib/libcrypto/engine/eng_ctrl.c
@@ -53,7 +53,10 @@
53 * 53 *
54 */ 54 */
55 55
56#include <openssl/crypto.h>
57#include "cryptlib.h"
56#include "eng_int.h" 58#include "eng_int.h"
59#include <openssl/engine.h>
57 60
58/* When querying a ENGINE-specific control command's 'description', this string 61/* When querying a ENGINE-specific control command's 'description', this string
59 * is used if the ENGINE_CMD_DEFN has cmd_desc set to NULL. */ 62 * is used if the ENGINE_CMD_DEFN has cmd_desc set to NULL. */
@@ -100,8 +103,7 @@ static int int_ctrl_cmd_by_num(const ENGINE_CMD_DEFN *defn, unsigned int num)
100 return -1; 103 return -1;
101 } 104 }
102 105
103static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p, 106static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p, void (*f)())
104 void (*f)(void))
105 { 107 {
106 int idx; 108 int idx;
107 char *s = (char *)p; 109 char *s = (char *)p;
@@ -179,7 +181,7 @@ static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p,
179 return -1; 181 return -1;
180 } 182 }
181 183
182int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)) 184int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)())
183 { 185 {
184 int ctrl_exists, ref_exists; 186 int ctrl_exists, ref_exists;
185 if(e == NULL) 187 if(e == NULL)
@@ -249,13 +251,13 @@ int ENGINE_cmd_is_executable(ENGINE *e, int cmd)
249 } 251 }
250 252
251int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, 253int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name,
252 long i, void *p, void (*f)(void), int cmd_optional) 254 long i, void *p, void (*f)(), int cmd_optional)
253 { 255 {
254 int num; 256 int num;
255 257
256 if((e == NULL) || (cmd_name == NULL)) 258 if((e == NULL) || (cmd_name == NULL))
257 { 259 {
258 ENGINEerr(ENGINE_F_ENGINE_CTRL_CMD, 260 ENGINEerr(ENGINE_F_ENGINE_CTRL_CMD_STRING,
259 ERR_R_PASSED_NULL_PARAMETER); 261 ERR_R_PASSED_NULL_PARAMETER);
260 return 0; 262 return 0;
261 } 263 }