159191Skris=pod 259191Skris 359191Skris=head1 NAME 459191Skris 559191SkrisERR_print_errors, ERR_print_errors_fp - print error messages 659191Skris 759191Skris=head1 SYNOPSIS 859191Skris 959191Skris #include <openssl/err.h> 1059191Skris 1159191Skris void ERR_print_errors(BIO *bp); 1259191Skris void ERR_print_errors_fp(FILE *fp); 1359191Skris 1459191Skris=head1 DESCRIPTION 1559191Skris 1659191SkrisERR_print_errors() is a convenience function that prints the error 1759191Skrisstrings for all errors that OpenSSL has recorded to B<bp>, thus 1859191Skrisemptying the error queue. 1959191Skris 2059191SkrisERR_print_errors_fp() is the same, except that the output goes to a 2159191SkrisB<FILE>. 2259191Skris 2359191Skris 2459191SkrisThe error strings will have the following format: 2559191Skris 2659191Skris [pid]:error:[error code]:[library name]:[function name]:[reason string]:[file name]:[line]:[optional text message] 2759191Skris 2859191SkrisI<error code> is an 8 digit hexadecimal number. I<library name>, 2959191SkrisI<function name> and I<reason string> are ASCII text, as is I<optional 3059191Skristext message> if one was set for the respective error code. 3159191Skris 3259191SkrisIf there is no text string registered for the given error code, 3359191Skristhe error string will contain the numeric code. 3459191Skris 3559191Skris=head1 RETURN VALUES 3659191Skris 3759191SkrisERR_print_errors() and ERR_print_errors_fp() return no values. 3859191Skris 3959191Skris=head1 SEE ALSO 4059191Skris 4159191SkrisL<err(3)|err(3)>, L<ERR_error_string(3)|ERR_error_string(3)>, 4259191SkrisL<ERR_get_error(3)|ERR_get_error(3)>, 4359191SkrisL<ERR_load_crypto_strings(3)|ERR_load_crypto_strings(3)>, 4459191SkrisL<SSL_load_error_strings(3)|SSL_load_error_strings(3)> 4559191Skris 4659191Skris=head1 HISTORY 4759191Skris 4859191SkrisERR_print_errors() and ERR_print_errors_fp() 4959191Skrisare available in all versions of SSLeay and OpenSSL. 5059191Skris 5159191Skris=cut 52