[openssl-commits] [openssl] master update

Andy Polyakov appro at openssl.org
Thu Jul 26 11:48:59 UTC 2018


The branch master has been updated
       via  06deb93286ac5f125fc81ddc9260b9de2311c7f3 (commit)
      from  b9e54e98066c1ff8adab5d68b6c114b14d2f74e5 (commit)


- Log -----------------------------------------------------------------
commit 06deb93286ac5f125fc81ddc9260b9de2311c7f3
Author: Andy Polyakov <appro at openssl.org>
Date:   Wed Jul 25 11:13:58 2018 +0200

    apps/apps.c: harmonize print_bignum_var output with coding style.
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>

-----------------------------------------------------------------------

Summary of changes:
 apps/apps.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/apps/apps.c b/apps/apps.c
index 2740275..4090e60 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -1188,16 +1188,15 @@ void print_bignum_var(BIO *out, const BIGNUM *in, const char *var,
 {
     BIO_printf(out, "    static unsigned char %s_%d[] = {", var, len);
     if (BN_is_zero(in)) {
-        BIO_printf(out, "\n\t0x00");
+        BIO_printf(out, "\n        0x00");
     } else {
         int i, l;
 
         l = BN_bn2bin(in, buffer);
         for (i = 0; i < l; i++) {
-            if ((i % 10) == 0)
-                BIO_printf(out, "\n\t");
+            BIO_printf(out, (i % 10) == 0 ? "\n        " : " ");
             if (i < l - 1)
-                BIO_printf(out, "0x%02X, ", buffer[i]);
+                BIO_printf(out, "0x%02X,", buffer[i]);
             else
                 BIO_printf(out, "0x%02X", buffer[i]);
         }


More information about the openssl-commits mailing list