]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
feat: print <none> in issuer serials in ac targeting extension
authorJonathan M. Wilbur <jonathan@wilbur.space>
Sat, 7 Sep 2024 09:50:34 +0000 (09:50 +0000)
committerTomas Mraz <tomas@openssl.org>
Tue, 10 Sep 2024 17:17:34 +0000 (19:17 +0200)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25244)

crypto/x509/v3_ac_tgt.c

index c6b3701b4ec6b67f17519eeb53c4624f863c7b43..1752569e3021e5b7dfbafa4d6dbbd409823c3ef5 100644 (file)
@@ -80,6 +80,8 @@ static int i2r_ISSUER_SERIAL(X509V3_EXT_METHOD *method,
         BIO_printf(out, "%*sIssuer Names:\n", indent, "");
         OSSL_GENERAL_NAMES_print(out, iss->issuer, indent);
         BIO_puts(out, "\n");
+    } else {
+        BIO_printf(out, "%*sIssuer Names: <none>\n", indent, "");
     }
     BIO_printf(out, "%*sIssuer Serial: ", indent, "");
     if (i2a_ASN1_INTEGER(out, &(iss->serial)) <= 0)
@@ -90,6 +92,8 @@ static int i2r_ISSUER_SERIAL(X509V3_EXT_METHOD *method,
         if (i2a_ASN1_STRING(out, iss->issuerUID, V_ASN1_BIT_STRING) <= 0)
             return 0;
         BIO_puts(out, "\n");
+    } else {
+        BIO_printf(out, "%*sIssuer UID: <none>\n", indent, "");
     }
     return 1;
 }