Fix trailing whitespace in EVP_PKEY_print_*

Aligning the bn_print labels doesn't do anything. They will, almost all
the time, add a newline anyway.

Change-Id: Ib6571eba7508ebd46508c61a68bfbb03d8c52ba6
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/54949
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Bob Beck <bbe@google.com>
fips-20230428
David Benjamin 2 years ago committed by Boringssl LUCI CQ
parent 4b35543cf2
commit 1e0f0423dd
  1. 8
      crypto/evp/print.c

@ -218,10 +218,10 @@ static int do_dsa_print(BIO *bp, const DSA *x, int off, int ptype) {
}
if (!bn_print(bp, "priv:", priv_key, off) ||
!bn_print(bp, "pub: ", pub_key, off) ||
!bn_print(bp, "P: ", x->p, off) ||
!bn_print(bp, "Q: ", x->q, off) ||
!bn_print(bp, "G: ", x->g, off)) {
!bn_print(bp, "pub:", pub_key, off) ||
!bn_print(bp, "P:", x->p, off) ||
!bn_print(bp, "Q:", x->q, off) ||
!bn_print(bp, "G:", x->g, off)) {
return 0;
}

Loading…
Cancel
Save