feat: print <none> in issuer serials in ac targeting extension

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25244)
This commit is contained in:
Jonathan M. Wilbur 2024-09-07 09:50:34 +00:00 committed by Tomas Mraz
parent f6b2ab0ba4
commit 7a4f0c6aea

View 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;
}