ENGINE_ctrl_cmd

Invoke an ENGINE control command looked up by name rather than number.

Synopsis

Declared in <openssl/engine.h>

[[deprecated]]
int
ENGINE_ctrl_cmd(
    ENGINE* e,
    char const* cmd_name,
    long i,
    void* p,
    void(* f)(),
    int cmd_optional);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
eStructural reference to the ENGINE; many commands also require it to be functional.
cmd_nameNUL-terminated name of the command (from the ENGINE's cmd_defns).
iInteger argument forwarded to the ENGINE ctrl handler.
pPointer argument forwarded to the ENGINE ctrl handler.
fOptional function-pointer argument forwarded to the ENGINE ctrl handler.
cmd_optionalNon-zero to treat an unsupported cmd_name as success.