ERR_print_errors.pod 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. =pod
  2. =head1 NAME
  3. ERR_print_errors, ERR_print_errors_fp, ERR_print_errors_cb
  4. - print error messages
  5. =head1 SYNOPSIS
  6. #include <openssl/err.h>
  7. void ERR_print_errors(BIO *bp);
  8. void ERR_print_errors_fp(FILE *fp);
  9. void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u)
  10. =head1 DESCRIPTION
  11. ERR_print_errors() is a convenience function that prints the error
  12. strings for all errors that OpenSSL has recorded to B<bp>, thus
  13. emptying the error queue.
  14. ERR_print_errors_fp() is the same, except that the output goes to a
  15. B<FILE>.
  16. ERR_print_errors_cb() is the same, except that the callback function,
  17. B<cb>, is called for each error line with the string, length, and userdata
  18. B<u> as the callback parameters.
  19. The error strings will have the following format:
  20. [pid]:error:[error code]:[library name]:[function name]:[reason string]:[file name]:[line]:[optional text message]
  21. I<error code> is an 8 digit hexadecimal number. I<library name>,
  22. I<function name> and I<reason string> are ASCII text, as is I<optional
  23. text message> if one was set for the respective error code.
  24. If there is no text string registered for the given error code,
  25. the error string will contain the numeric code.
  26. =head1 RETURN VALUES
  27. ERR_print_errors() and ERR_print_errors_fp() return no values.
  28. =head1 SEE ALSO
  29. L<ERR_error_string(3)>,
  30. L<ERR_get_error(3)>
  31. =head1 COPYRIGHT
  32. Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
  33. Licensed under the OpenSSL license (the "License"). You may not use
  34. this file except in compliance with the License. You can obtain a copy
  35. in the file LICENSE in the source distribution or at
  36. L<https://www.openssl.org/source/license.html>.
  37. =cut