ERR_peek_error_line

Peek at the earliest error and optionally return its source file and line.

Synopsis

Declared in <openssl/err.h>

unsigned long
ERR_peek_error_line(
    char const** file,
    int* line);

Return Value

Earliest error code, or 0 if the queue is empty (queue unchanged).

Parameters

NameDescription
fileReceives the source file name, or unchanged if NULL.
lineReceives the source line number, or unchanged if NULL.