ERR_GET_LIB

Extract the library number from a packed OpenSSL error code.

Synopsis

Declared in <openssl/err.h>

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

NOTE

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

Return Value

ERR_LIB_* library number, or ERR_LIB_SYS for a recorded system error.

Parameters

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