From: Yutian Li Date: Tue, 30 Aug 2016 03:17:28 +0000 (+0800) Subject: Add padding spaces before printing algo. X-Git-Tag: OpenSSL_1_1_1-pre1~434 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=e6cccb5f0523f5a61f5d963ca1708d02e3e83ccc;hp=4ff71d6740adde74acfa7d017fc2257be831caf3 Add padding spaces before printing algo. CLA: trivial Reviewed-by: Paul Dale Reviewed-by: Rich Salz Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1513) --- diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index ba6f9196d2..2ad7e63900 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -119,6 +119,9 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, if (!(cflag & X509_FLAG_NO_SIGNAME)) { const X509_ALGOR *tsig_alg = X509_get0_tbs_sigalg(x); + + if (BIO_puts(bp, " ") <= 0) + goto err; if (X509_signature_print(bp, tsig_alg, NULL) <= 0) goto err; }