ERR_set_error

Set library, reason, and optional formatted auxiliary data on the current error entry.

Synopsis

Declared in <openssl/err.h>

void
ERR_set_error(
    int lib,
    int reason,
    char const* fmt, ...);

Parameters

NameDescription
libERR_LIB_* library number for the error.
reasonReason code within lib (or errno when lib is ERR_LIB_SYS).
fmtprintf-style format for extra data, or NULL for none; remaining arguments match fmt when non-NULL.