From: Dr. David von Oheimb Date: Wed, 6 Jan 2021 10:27:55 +0000 (+0100) Subject: X509_REQ_print_ex(): Replace weird 'a0:00' output on empty attributes by '(none)' X-Git-Tag: openssl-3.0.0-alpha11~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db6a47b10d3daad512fc08950d8329891209a4f4;p=thirdparty%2Fopenssl.git X509_REQ_print_ex(): Replace weird 'a0:00' output on empty attributes by '(none)' Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/13711) --- diff --git a/crypto/x509/t_req.c b/crypto/x509/t_req.c index 1f50a0a1e2f..24e2044503e 100644 --- a/crypto/x509/t_req.c +++ b/crypto/x509/t_req.c @@ -108,7 +108,7 @@ int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, goto err; if (X509_REQ_get_attr_count(x) == 0) { - if (BIO_printf(bp, "%12sa0:00\n", "") <= 0) + if (BIO_printf(bp, "%12s(none)\n", "") <= 0) goto err; } else { for (i = 0; i < X509_REQ_get_attr_count(x); i++) {