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

Name

Description

e

Structural reference to the ENGINE; many commands also require it to be functional.

cmd_name

NUL‐terminated name of the command (from the ENGINE's cmd_defns).

i

Integer argument forwarded to the ENGINE ctrl handler.

p

Pointer argument forwarded to the ENGINE ctrl handler.

f

Optional function‐pointer argument forwarded to the ENGINE ctrl handler.

cmd_optional

Non‐zero to treat an unsupported cmd_name as success.

Created with MrDocs