diff options
author | Brian Smith <brian@briansmith.org> | 2015-04-10 05:21:10 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-04-13 23:23:29 +0300 |
commit | 83a82981dc81b4699f6d7aa423e32712af71a55a (patch) | |
tree | fcbbae35a2812510bbd259779a51216fc7a43f63 /include/openssl/err.h | |
parent | 7d897a1bf2abab32f3e6200ee15930d68ae87ad6 (diff) |
Rename BIO_print_errors_fp back to ERR_print_errors_fp & refactor it.
A previous change in BoringSSL renamed ERR_print_errors_fp to
BIO_print_errors_fp as part of refactoring the code to improve the
layering of modules within BoringSSL. Rename it back for better
compatibility with code that was using the function under the original
name. Move its definition back to crypto/err using an implementation
that avoids depending on crypto/bio.
Change-Id: Iee7703bb1eb4a3d640aff6485712bea71d7c1052
Reviewed-on: https://boringssl-review.googlesource.com/4310
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/err.h')
-rw-r--r-- | include/openssl/err.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/openssl/err.h b/include/openssl/err.h index 340cf9b8..738e8c5d 100644 --- a/include/openssl/err.h +++ b/include/openssl/err.h @@ -109,6 +109,8 @@ #ifndef OPENSSL_HEADER_ERR_H #define OPENSSL_HEADER_ERR_H +#include <stdio.h> + #include <openssl/base.h> #include <openssl/thread.h> #include <openssl/lhash.h> @@ -251,6 +253,10 @@ OPENSSL_EXPORT void ERR_print_errors_cb(ERR_print_errors_callback_t callback, void *ctx); +/* ERR_print_errors_fp prints the current contents of the error stack to |file|
+ * using human readable strings where possible. */ +OPENSSL_EXPORT void ERR_print_errors_fp(FILE *file); + /* Clearing errors. */ /* ERR_clear_error clears the error queue for the current thread. */ |