1e71b7053SJung-uk Kim=pod 2e71b7053SJung-uk Kim 3e71b7053SJung-uk Kim=head1 NAME 4e71b7053SJung-uk Kim 5e71b7053SJung-uk KimERR_print_errors, ERR_print_errors_fp, ERR_print_errors_cb 6e71b7053SJung-uk Kim- print error messages 7e71b7053SJung-uk Kim 8e71b7053SJung-uk Kim=head1 SYNOPSIS 9e71b7053SJung-uk Kim 10e71b7053SJung-uk Kim #include <openssl/err.h> 11e71b7053SJung-uk Kim 12e71b7053SJung-uk Kim void ERR_print_errors(BIO *bp); 13e71b7053SJung-uk Kim void ERR_print_errors_fp(FILE *fp); 14*b077aed3SPierre Pronchery void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), 15*b077aed3SPierre Pronchery void *u); 16e71b7053SJung-uk Kim 17e71b7053SJung-uk Kim=head1 DESCRIPTION 18e71b7053SJung-uk Kim 19e71b7053SJung-uk KimERR_print_errors() is a convenience function that prints the error 20e71b7053SJung-uk Kimstrings for all errors that OpenSSL has recorded to B<bp>, thus 21e71b7053SJung-uk Kimemptying the error queue. 22e71b7053SJung-uk Kim 23e71b7053SJung-uk KimERR_print_errors_fp() is the same, except that the output goes to a 24e71b7053SJung-uk KimB<FILE>. 25e71b7053SJung-uk Kim 26e71b7053SJung-uk KimERR_print_errors_cb() is the same, except that the callback function, 27e71b7053SJung-uk KimB<cb>, is called for each error line with the string, length, and userdata 28e71b7053SJung-uk KimB<u> as the callback parameters. 29e71b7053SJung-uk Kim 30e71b7053SJung-uk KimThe error strings will have the following format: 31e71b7053SJung-uk Kim 32e71b7053SJung-uk Kim [pid]:error:[error code]:[library name]:[function name]:[reason string]:[filename]:[line]:[optional text message] 33e71b7053SJung-uk Kim 34e71b7053SJung-uk KimI<error code> is an 8 digit hexadecimal number. I<library name>, 35e71b7053SJung-uk KimI<function name> and I<reason string> are ASCII text, as is I<optional 36e71b7053SJung-uk Kimtext message> if one was set for the respective error code. 37e71b7053SJung-uk Kim 38e71b7053SJung-uk KimIf there is no text string registered for the given error code, 39e71b7053SJung-uk Kimthe error string will contain the numeric code. 40e71b7053SJung-uk Kim 41e71b7053SJung-uk Kim=head1 RETURN VALUES 42e71b7053SJung-uk Kim 43e71b7053SJung-uk KimERR_print_errors() and ERR_print_errors_fp() return no values. 44e71b7053SJung-uk Kim 45e71b7053SJung-uk Kim=head1 SEE ALSO 46e71b7053SJung-uk Kim 47e71b7053SJung-uk KimL<ERR_error_string(3)>, 48e71b7053SJung-uk KimL<ERR_get_error(3)> 49e71b7053SJung-uk Kim 50e71b7053SJung-uk Kim=head1 COPYRIGHT 51e71b7053SJung-uk Kim 5258f35182SJung-uk KimCopyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved. 53e71b7053SJung-uk Kim 54*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License"). You may not use 55e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 56e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 57e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 58e71b7053SJung-uk Kim 59e71b7053SJung-uk Kim=cut 60