aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-06-12 13:41:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-06-12 13:41:18 +0000
commit4b9e0b5f742141b69d391bd3db86659243c19be2 (patch)
treefa3b11d82632bcaefa36b16c38d4d77fda27f362 /crypto/asn1
parent447e1319b12d613e697a379bcd585179549ba3d7 (diff)
downloadopenssl-4b9e0b5f742141b69d391bd3db86659243c19be2.tar.gz
print out issuer and subject unique identifier fields in certificates
Diffstat (limited to 'crypto/asn1')
-rw-r--r--crypto/asn1/t_x509.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/crypto/asn1/t_x509.c b/crypto/asn1/t_x509.c
index edbb39a02f..8eb0b79a91 100644
--- a/crypto/asn1/t_x509.c
+++ b/crypto/asn1/t_x509.c
@@ -225,6 +225,24 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
}
}
+ if(!(cflag & X509_FLAG_NO_IDS))
+ {
+ if (ci->issuerUID)
+ {
+ if (BIO_printf(bp,"%8sIssuer Unique ID: ","") <= 0)
+ goto err;
+ if (!X509_signature_dump(bp, ci->issuerUID, 12))
+ goto err;
+ }
+ if (ci->subjectUID)
+ {
+ if (BIO_printf(bp,"%8sSubject Unique ID: ","") <= 0)
+ goto err;
+ if (!X509_signature_dump(bp, ci->subjectUID, 12))
+ goto err;
+ }
+ }
+
if (!(cflag & X509_FLAG_NO_EXTENSIONS))
X509V3_extensions_print(bp, "X509v3 extensions",
ci->extensions, cflag, 8);