From 7a4f0c6aeaaaf8c78dad518b0113288069c5d280 Mon Sep 17 00:00:00 2001 From: "Jonathan M. Wilbur" Date: Sat, 7 Sep 2024 09:50:34 +0000 Subject: [PATCH] feat: print in issuer serials in ac targeting extension Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/25244) --- crypto/x509/v3_ac_tgt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/x509/v3_ac_tgt.c b/crypto/x509/v3_ac_tgt.c index c6b3701b4ec..1752569e302 100644 --- a/crypto/x509/v3_ac_tgt.c +++ b/crypto/x509/v3_ac_tgt.c @@ -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: \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: \n", indent, ""); } return 1; } -- 2.47.2