1ERR_PRINT_ERRORS(3ossl) OpenSSL ERR_PRINT_ERRORS(3ossl)
2
3
4
6 ERR_print_errors, ERR_print_errors_fp, ERR_print_errors_cb - print
7 error messages
8
10 #include <openssl/err.h>
11
12 void ERR_print_errors(BIO *bp);
13 void ERR_print_errors_fp(FILE *fp);
14 void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u),
15 void *u);
16
18 ERR_print_errors() is a convenience function that prints the error
19 strings for all errors that OpenSSL has recorded to bp, thus emptying
20 the error queue.
21
22 ERR_print_errors_fp() is the same, except that the output goes to a
23 FILE.
24
25 ERR_print_errors_cb() is the same, except that the callback function,
26 cb, is called for each error line with the string, length, and userdata
27 u as the callback parameters.
28
29 The error strings will have the following format:
30
31 [pid]:error:[error code]:[library name]:[function name]:[reason string]:[filename]:[line]:[optional text message]
32
33 error code is an 8 digit hexadecimal number. library name, function
34 name and reason string are ASCII text, as is optional text message if
35 one was set for the respective error code.
36
37 If there is no text string registered for the given error code, the
38 error string will contain the numeric code.
39
41 ERR_print_errors() and ERR_print_errors_fp() return no values.
42
44 ERR_error_string(3), ERR_get_error(3)
45
47 Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
48
49 Licensed under the Apache License 2.0 (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
563.0.9 2023-07-27 ERR_PRINT_ERRORS(3ossl)