Lines Matching refs:e

64 static int int_ctrl_helper(ENGINE *e, int cmd, long i, void *p,  in int_ctrl_helper()  argument
73 if ((e->cmd_defns == NULL) || int_ctrl_cmd_is_null(e->cmd_defns)) in int_ctrl_helper()
75 return e->cmd_defns->cmd_num; in int_ctrl_helper()
88 if ((e->cmd_defns == NULL) in int_ctrl_helper()
89 || ((idx = int_ctrl_cmd_by_name(e->cmd_defns, s)) < 0)) { in int_ctrl_helper()
93 return e->cmd_defns[idx].cmd_num; in int_ctrl_helper()
99 if ((e->cmd_defns == NULL) in int_ctrl_helper()
100 || ((idx = int_ctrl_cmd_by_num(e->cmd_defns, (unsigned int)i)) < 0)) { in int_ctrl_helper()
105 cdp = &e->cmd_defns[idx]; in int_ctrl_helper()
128 int ENGINE_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f) (void)) in ENGINE_ctrl() argument
132 if (e == NULL) { in ENGINE_ctrl()
137 ctrl_exists = ((e->ctrl == NULL) ? 0 : 1); in ENGINE_ctrl()
154 if (ctrl_exists && !(e->flags & ENGINE_FLAGS_MANUAL_CMD_CTRL)) in ENGINE_ctrl()
155 return int_ctrl_helper(e, cmd, i, p, f); in ENGINE_ctrl()
173 return e->ctrl(e, cmd, i, p, f); in ENGINE_ctrl()
176 int ENGINE_cmd_is_executable(ENGINE *e, int cmd) in ENGINE_cmd_is_executable() argument
180 ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FLAGS, cmd, NULL, NULL)) < 0) { in ENGINE_cmd_is_executable()
191 int ENGINE_ctrl_cmd(ENGINE *e, const char *cmd_name, in ENGINE_ctrl_cmd() argument
196 if (e == NULL || cmd_name == NULL) { in ENGINE_ctrl_cmd()
200 if (e->ctrl == NULL in ENGINE_ctrl_cmd()
201 || (num = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FROM_NAME, in ENGINE_ctrl_cmd()
222 if (ENGINE_ctrl(e, num, i, p, f) > 0) in ENGINE_ctrl_cmd()
227 int ENGINE_ctrl_cmd_string(ENGINE *e, const char *cmd_name, const char *arg, in ENGINE_ctrl_cmd_string() argument
234 if (e == NULL || cmd_name == NULL) { in ENGINE_ctrl_cmd_string()
238 if (e->ctrl == NULL in ENGINE_ctrl_cmd_string()
239 || (num = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FROM_NAME, in ENGINE_ctrl_cmd_string()
256 if (!ENGINE_cmd_is_executable(e, num)) { in ENGINE_ctrl_cmd_string()
261 flags = ENGINE_ctrl(e, ENGINE_CTRL_GET_CMD_FLAGS, num, NULL, NULL); in ENGINE_ctrl_cmd_string()
284 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string()
296 if (ENGINE_ctrl(e, num, 0, (void *)arg, NULL) > 0) in ENGINE_ctrl_cmd_string()
319 if (ENGINE_ctrl(e, num, l, NULL, NULL) > 0) in ENGINE_ctrl_cmd_string()