diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-06-12 13:41:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-06-12 13:41:18 +0000 |
commit | 4b9e0b5f742141b69d391bd3db86659243c19be2 (patch) | |
tree | fa3b11d82632bcaefa36b16c38d4d77fda27f362 /crypto/asn1/t_x509.c | |
parent | 447e1319b12d613e697a379bcd585179549ba3d7 (diff) | |
download | openssl-4b9e0b5f742141b69d391bd3db86659243c19be2.tar.gz |
print out issuer and subject unique identifier fields in certificates
Diffstat (limited to 'crypto/asn1/t_x509.c')
-rw-r--r-- | crypto/asn1/t_x509.c | 18 |
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); |