From db6a47b10d3daad512fc08950d8329891209a4f4 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 6 Jan 2021 11:27:55 +0100 Subject: [PATCH] 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) --- crypto/x509/t_req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- 2.47.2