summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-01-28 12:54:52 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-01-28 12:54:52 +0000
commit57f39cc826ad569b40c0531905327605ec7b0933 (patch)
tree4a26d7179f32f9079117ff15e90fc766438c6c84
parent64895732249821b3b0bf3068cbb76464ef5362ba (diff)
Print out UTF8 and NumericString types in ASN1 parsing utility.
-rw-r--r--CHANGES3
-rw-r--r--crypto/asn1/asn1_par.c2
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index ba1feb0d2e..580a735d95 100644
--- a/CHANGES
+++ b/CHANGES
@@ -745,6 +745,9 @@
Changes between 0.9.8j and 0.9.8k [xx XXX xxxx]
+ *) Print out UTF8String and NumericString when parsing ASN1.
+ [Steve Henson]
+
*) Support NumericString type for name components.
[Steve Henson]
diff --git a/crypto/asn1/asn1_par.c b/crypto/asn1/asn1_par.c
index c322dec2b2..688eb82718 100644
--- a/crypto/asn1/asn1_par.c
+++ b/crypto/asn1/asn1_par.c
@@ -206,6 +206,8 @@ static int asn1_parse2(BIO *bp, const unsigned char **pp, long length, int offse
(tag == V_ASN1_T61STRING) ||
(tag == V_ASN1_IA5STRING) ||
(tag == V_ASN1_VISIBLESTRING) ||
+ (tag == V_ASN1_NUMERICSTRING) ||
+ (tag == V_ASN1_UTF8STRING) ||
(tag == V_ASN1_UTCTIME) ||
(tag == V_ASN1_GENERALIZEDTIME))
{