1ERR_load_strings(3)                 OpenSSL                ERR_load_strings(3)
2
3
4

NAME

6       ERR_load_strings, ERR_PACK, ERR_get_next_error_library - load arbitrary
7       error strings
8

SYNOPSIS

10        #include <openssl/err.h>
11
12        void ERR_load_strings(int lib, ERR_STRING_DATA str[]);
13
14        int ERR_get_next_error_library(void);
15
16        unsigned long ERR_PACK(int lib, int func, int reason);
17

DESCRIPTION

19       ERR_load_strings() registers error strings for library number lib.
20
21       str is an array of error string data:
22
23        typedef struct ERR_string_data_st
24        {
25               unsigned long error;
26               char *string;
27        } ERR_STRING_DATA;
28
29       The error code is generated from the library number and a function and
30       reason code: error = ERR_PACK(lib, func, reason).  ERR_PACK() is a
31       macro.
32
33       The last entry in the array is {0,0}.
34
35       ERR_get_next_error_library() can be used to assign library numbers to
36       user libraries at runtime.
37

RETURN VALUE

39       ERR_load_strings() returns no value. ERR_PACK() return the error code.
40       ERR_get_next_error_library() returns a new library number.
41

SEE ALSO

43       err(3), ERR_load_strings(3)
44

HISTORY

46       ERR_load_error_strings() and ERR_PACK() are available in all versions
47       of SSLeay and OpenSSL. ERR_get_next_error_library() was added in SSLeay
48       0.9.0.
49
50
51
521.0.2o                            2018-03-27               ERR_load_strings(3)
Impressum