ERR_GET_REASON

Extract the reason code from a packed OpenSSL or system error code.

Synopsis

Declared in <openssl/err.h>

[[maybe_unused]]
static
int
ERR_GET_REASON(unsigned long errcode);

NOTE

This entity may be unused, and the compiler will not warn about it.

Return Value

Reason code within the library, or the errno value for a system error.

Parameters

NameDescription
errcodeError code as returned by ERR_get_error() or ERR_peek_error().