From 21234c485dbcbe91f353a363310f7d4dc8c99d8a Mon Sep 17 00:00:00 2001 From: occheung Date: Fri, 20 Nov 2020 11:52:47 +0800 Subject: [PATCH] cert rdn: allow IA5String --- src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.rs b/src/parse.rs index cdce012..ec144f8 100644 --- a/src/parse.rs +++ b/src/parse.rs @@ -932,7 +932,7 @@ pub fn parse_asn1_der_attribute_type_and_value(bytes: &[u8]) -> IResult<&[u8], A )(set)?; // Verify that tag_val is either "PrintableString or UTF8String" - if tag_val != 0x13 && tag_val != 0x0C { + if tag_val != 0x13 && tag_val != 0x0C && tag_val != 0x16 { return Err(nom::Err::Error((bytes, ErrorKind::Verify))); }