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

Name

Description

errcode

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

Created with MrDocs