cert rdn: allow IA5String

This commit is contained in:
occheung 2020-11-20 11:52:47 +08:00
parent 50cf99b5e4
commit 21234c485d
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}