Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2015-04-10 05:21:10 +0300
committerAdam Langley <agl@google.com>2015-04-13 23:23:29 +0300
commit83a82981dc81b4699f6d7aa423e32712af71a55a (patch)
treefcbbae35a2812510bbd259779a51216fc7a43f63 /crypto/bio
parent7d897a1bf2abab32f3e6200ee15930d68ae87ad6 (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 'crypto/bio')
-rw-r--r--crypto/bio/bio.c6
-rw-r--r--crypto/bio/bio_test.cc2
2 files changed, 1 insertions, 7 deletions
diff --git a/crypto/bio/bio.c b/crypto/bio/bio.c
index 4d947a6c..86fb8536 100644
--- a/crypto/bio/bio.c
+++ b/crypto/bio/bio.c
@@ -462,12 +462,6 @@ int BIO_indent(BIO *bio, unsigned indent, unsigned max_indent) {
return 1;
}
-void BIO_print_errors_fp(FILE *out) {
- BIO *bio = BIO_new_fp(out, BIO_NOCLOSE);
- BIO_print_errors(bio);
- BIO_free(bio);
-}
-
static int print_bio(const char *str, size_t len, void *bio) {
return BIO_write((BIO *)bio, str, len);
}
diff --git a/crypto/bio/bio_test.cc b/crypto/bio/bio_test.cc
index 00a9e323..b56f6416 100644
--- a/crypto/bio/bio_test.cc
+++ b/crypto/bio/bio_test.cc
@@ -111,7 +111,7 @@ static bool TestSocketConnect() {
if (BIO_write(bio.get(), kTestMessage, sizeof(kTestMessage)) !=
sizeof(kTestMessage)) {
fprintf(stderr, "BIO_write failed.\n");
- BIO_print_errors_fp(stderr);
+ ERR_print_errors_fp(stderr);
return false;
}