From 26a374a271dabd49f3fa7f43a74e05d34aca010e Mon Sep 17 00:00:00 2001 From: Yutian Li Date: Tue, 30 Aug 2016 11:17:28 +0800 Subject: [PATCH] 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) --- crypto/x509/t_x509.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.25.1