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

Name

Description

lib

ERR_LIB_* library number for the error.

reason

Reason code within lib (or errno when lib is ERR_LIB_SYS).

fmt

printf‐style format for extra data, or NULL for none; remaining arguments match fmt when non‐NULL.

Created with MrDocs