From: Andy Polyakov Date: Tue, 20 Jan 2015 14:22:42 +0000 (+0100) Subject: bn/bntest.c: make it indent-friendly. X-Git-Tag: OpenSSL_1_0_1-post-reformat~35 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d68e7df7ab7dd23f7f0de20883b3b9433420127b;p=oweals%2Fopenssl.git bn/bntest.c: make it indent-friendly. Conflicts: crypto/bn/bntest.c Reviewed-by: Tim Hudson --- diff --git a/crypto/bn/bntest.c b/crypto/bn/bntest.c index 48bc63384c..bc07781190 100644 --- a/crypto/bn/bntest.c +++ b/crypto/bn/bntest.c @@ -304,11 +304,11 @@ int main(int argc, char *argv[]) BN_CTX_free(ctx); BIO_free(out); -/**/ EXIT(0); err: BIO_puts(out,"1\n"); /* make sure the Perl script fed by bc notices - * the failure, see test_bn in test/Makefile.ssl*/ + * the failure, see test_bn in test/Makefile.ssl + */ (void)BIO_flush(out); ERR_load_crypto_strings(); ERR_print_errors_fp(stderr); @@ -718,7 +718,8 @@ int test_sqr(BIO *bp, BN_CTX *ctx) /* Regression test for a BN_sqr overflow bug. */ BN_hex2bn(&a, - "80000000000000008000000000000001FFFFFFFFFFFFFFFE0000000000000000"); + "80000000000000008000000000000001" + "FFFFFFFFFFFFFFFE0000000000000000"); BN_sqr(c, a, ctx); if (bp != NULL) { @@ -742,7 +743,8 @@ int test_sqr(BIO *bp, BN_CTX *ctx) /* Regression test for a BN_sqr overflow bug. */ BN_hex2bn(&a, - "80000000000000000000000080000001FFFFFFFE000000000000000000000000"); + "80000000000000000000000080000001" + "FFFFFFFE000000000000000000000000"); BN_sqr(c, a, ctx); if (bp != NULL) { @@ -791,8 +793,8 @@ int test_mont(BIO *bp, BN_CTX *ctx) if (mont == NULL) return 0; - BN_bntest_rand(&a,100,0,0); /**/ - BN_bntest_rand(&b,100,0,0); /**/ + BN_bntest_rand(&a,100,0,0); + BN_bntest_rand(&b,100,0,0); for (i=0; ineg=rand_neg(); b->neg=rand_neg(); - BN_mod(c,a,b,ctx);/**/ + BN_mod(c,a,b,ctx); if (bp != NULL) { if (!results) @@ -907,11 +909,11 @@ int test_mod_mul(BIO *bp, BN_CTX *ctx) e=BN_new(); for (j=0; j<3; j++) { - BN_bntest_rand(c,1024,0,0); /**/ + BN_bntest_rand(c,1024,0,0); for (i=0; ineg=rand_neg(); b->neg=rand_neg(); if (!BN_mod_mul(e,a,b,c,ctx)) @@ -980,8 +982,8 @@ int test_mod_exp(BIO *bp, BN_CTX *ctx) BN_bntest_rand(c,30,0,1); /* must be odd for montgomery */ for (i=0; ineg=rand_neg(); } for (i=0; ineg=rand_neg(); for (i=0; ineg=rand_neg(); for (i=0; ineg=rand_neg(); for (i=0; i