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 VALUES

39       ERR_load_strings() returns no value. ERR_PACK() return the error code.
40       ERR_get_next_error_library() returns zero on failure, otherwise a new
41       library number.
42

SEE ALSO

44       ERR_load_strings(3)
45
47       Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
48
49       Licensed under the OpenSSL license (the "License").  You may not use
50       this file except in compliance with the License.  You can obtain a copy
51       in the file LICENSE in the source distribution or at
52       <https://www.openssl.org/source/license.html>.
53
54
55
561.1.1g                            2020-04-23               ERR_LOAD_STRINGS(3)
Impressum