ERR_peek_last_error_data

Peek at the newest error and optionally return auxiliary data and flags.

Synopsis

Declared in <openssl/err.h>

unsigned long
ERR_peek_last_error_data(
    char const** data,
    int* flags);

Return Value

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

Parameters

NameDescription
dataReceives optional auxiliary data, or unchanged if NULL.
flagsReceives ERR_TXT_* flags for data, or unchanged if NULL.