60 static const char *int_no_description =
"";
73 static int int_ctrl_cmd_by_name(
const ENGINE_CMD_DEFN *defn,
const char *s)
76 while(!int_ctrl_cmd_is_null(defn) && (strcmp(defn->
cmd_name, s) != 0))
81 if(int_ctrl_cmd_is_null(defn))
92 while(!int_ctrl_cmd_is_null(defn) && (defn->
cmd_num < num))
103 static int int_ctrl_helper(
ENGINE *
e,
int cmd,
long i,
void *
p,
130 if((e->
cmd_defns == NULL) || ((idx = int_ctrl_cmd_by_name(
142 (
unsigned int)i)) < 0))
153 if(int_ctrl_cmd_is_null(e->
cmd_defns + idx))
166 return strlen(int_no_description);
172 return BIO_snprintf(s, strlen(int_no_description) + 1,
"%s",
184 int ctrl_exists, ref_exists;
193 ctrl_exists = ((e->
ctrl == NULL) ? 0 : 1);
214 return int_ctrl_helper(e,cmd,i,p,
f);
232 return e->
ctrl(e, cmd, i, p,
f);
252 long i,
void *p,
void (*
f)(
void),
int cmd_optional)
256 if((e == NULL) || (cmd_name == NULL))
264 0, (
void *)cmd_name, NULL)) <= 0))
294 if((e == NULL) || (cmd_name == NULL))
302 0, (
void *)cmd_name, NULL)) <= 0))
377 l = strtol(arg, &ptr, 10);
378 if((arg == ptr) || (*ptr !=
'\0'))