ERR_get_error_all

Pop the earliest error and optionally return file, line, function, data, and flags.

Synopsis

Declared in <openssl/err.h>

unsigned long
ERR_get_error_all(
    char const** file,
    int* line,
    char const** func,
    char const** data,
    int* flags);

Return Value

Packed error code, or 0 if the queue is empty.

Parameters

NameDescription
fileReceives the source file name, or unchanged if NULL.
lineReceives the source line number, or unchanged if NULL.
funcReceives the function name, or unchanged if NULL.
dataReceives optional auxiliary data, or unchanged if NULL.
flagsReceives ERR_TXT_* flags for data, or unchanged if NULL.