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 /crypto/bn/bn_test.cc | |
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 'crypto/bn/bn_test.cc')
-rw-r--r-- | crypto/bn/bn_test.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/bn/bn_test.cc b/crypto/bn/bn_test.cc index a1f294d7..caef5722 100644 --- a/crypto/bn/bn_test.cc +++ b/crypto/bn/bn_test.cc @@ -945,7 +945,7 @@ static bool test_mod_mul(BIO *bp, BN_CTX *ctx) { a->neg = rand_neg(); b->neg = rand_neg(); if (!BN_mod_mul(e.get(), a.get(), b.get(), c.get(), ctx)) { - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } if (bp != NULL) { @@ -975,7 +975,7 @@ static bool test_mod_mul(BIO *bp, BN_CTX *ctx) { } if (!BN_is_zero(b.get())) { fprintf(stderr, "Modulo multiply test failed!\n"); - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } } @@ -1323,7 +1323,7 @@ static bool test_sqrt(BIO *bp, BN_CTX *ctx) { 0 /* don't modify bottom bit */) || !BN_mul(nn.get(), n.get(), n.get(), ctx) || !BN_sqrt(sqrt.get(), nn.get(), ctx)) { - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } if (BN_cmp(n.get(), sqrt.get()) != 0) { @@ -1339,7 +1339,7 @@ static bool test_sqrt(BIO *bp, BN_CTX *ctx) { 0 /* don't modify bottom bit */) || !BN_mul(nn.get(), n.get(), n.get(), ctx) || !BN_add(nn.get(), nn.get(), BN_value_one())) { - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } @@ -1380,7 +1380,7 @@ static bool test_bn2bin_padded(BIO *bp, BN_CTX *ctx) { for (size_t bytes = 128 - 7; bytes <= 128; bytes++) { if (!BN_rand(n.get(), bytes * 8, 0 /* make sure top bit is 1 */, 0 /* don't modify bottom bit */)) { - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } if (BN_num_bytes(n.get()) != bytes || |