ERR_peek_last_error_line

Peek at the newest error code and optionally its source file/line.

Synopsis

Declared in <openssl/err.h>

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

Return Value

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

Parameters

NameDescription
fileReceives the source file name associated with the error, or may be NULL.
lineReceives the source line number associated with the error, or may be NULL.