diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-06-12 13:41:18 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-01-16 15:08:34 +0000 |
commit | 2aa3ef78b68513681472dd35f5e6fa7908765360 (patch) | |
tree | 1d9474c8154b3cfe73c21ce90ed894b5bc6bc94c /crypto/asn1 | |
parent | 1c0964e87fe5f73872d661668aa93eacb52a9672 (diff) |
print out issuer and subject unique identifier fields in certificates
Diffstat (limited to 'crypto/asn1')
-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); |