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

Name

Description

errcode

Error code as returned by ERR_get_error() or ERR_peek_error().

Created with MrDocs