]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
X509_REQ_print_ex(): Replace weird 'a0:00' output on empty attributes by '(none)'
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 6 Jan 2021 10:27:55 +0000 (11:27 +0100)
committerDr. David von Oheimb <dev@ddvo.net>
Wed, 20 Jan 2021 14:59:22 +0000 (15:59 +0100)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13711)

crypto/x509/t_req.c

index 1f50a0a1e2fd341f3d8f5b411c9230419e6352cf..24e2044503e821391e2862c198483e74e81db627 100644 (file)
@@ -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++) {