1ERR_GET_LIB(3)                      OpenSSL                     ERR_GET_LIB(3)
2
3
4

NAME

6       ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON - get library, function and
7       reason code
8

SYNOPSIS

10        #include <openssl/err.h>
11
12        int ERR_GET_LIB(unsigned long e);
13
14        int ERR_GET_FUNC(unsigned long e);
15
16        int ERR_GET_REASON(unsigned long e);
17

DESCRIPTION

19       The error code returned by ERR_get_error() consists of a library
20       number, function code and reason code. ERR_GET_LIB(), ERR_GET_FUNC()
21       and ERR_GET_REASON() can be used to extract these.
22
23       The library number and function code describe where the error occurred,
24       the reason code is the information about what went wrong.
25
26       Each sub-library of OpenSSL has a unique library number; function and
27       reason codes are unique within each sub-library.  Note that different
28       libraries may use the same value to signal different functions and
29       reasons.
30
31       ERR_R_... reason codes such as ERR_R_MALLOC_FAILURE are globally
32       unique. However, when checking for sub-library specific reason codes,
33       be sure to also compare the library number.
34
35       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are macros.
36

RETURN VALUES

38       The library number, function code and reason code respectively.
39

SEE ALSO

41       err(3), ERR_get_error(3)
42

HISTORY

44       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are available in all
45       versions of SSLeay and OpenSSL.
46
47
48
491.0.1e                            2013-02-11                    ERR_GET_LIB(3)
Impressum