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

NAME

6       ERR_GET_LIB, ERR_GET_FUNC, ERR_GET_REASON, ERR_FATAL_ERROR - get
7       information from error codes
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
18        int ERR_FATAL_ERROR(unsigned long e);
19

DESCRIPTION

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

RETURN VALUES

44       The library number, function code, reason code, and whether the error
45       is fatal, respectively.
46

SEE ALSO

48       ERR_get_error(3)
49

HISTORY

51       ERR_GET_LIB(), ERR_GET_FUNC() and ERR_GET_REASON() are available in all
52       versions of OpenSSL.
53
55       Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
56
57       Licensed under the OpenSSL license (the "License").  You may not use
58       this file except in compliance with the License.  You can obtain a copy
59       in the file LICENSE in the source distribution or at
60       <https://www.openssl.org/source/license.html>.
61
62
63
641.1.1                             2018-09-11                    ERR_GET_LIB(3)
Impressum