Compare commits

..

2 Commits

Author SHA1 Message Date
occheung f71c868246 cert ipv4/v6: segregation 2020-11-12 16:32:27 +08:00
occheung 4c52f23b9d cert name: improve check 2020-11-12 12:18:32 +08:00
3 changed files with 851 additions and 56 deletions

View File

@ -90,4 +90,4 @@ optional = true
[features] [features]
default = [] default = []
std = [ "simple_logger", "rand", "hex-literal" ] std = [ "rand", "hex-literal", "simple_logger" ]

File diff suppressed because it is too large Load Diff

View File

@ -1231,7 +1231,10 @@ pub fn parse_asn1_der_general_name(bytes: &[u8]) -> IResult<&[u8], Asn1DerGenera
}, },
0x84 => { 0x84 => {
Asn1DerGeneralName::DirectoryName(name_value) let (_, name) = complete(
parse_asn1_der_name
)(name_value)?;
Asn1DerGeneralName::DirectoryName(name)
}, },
0xA5 => { 0xA5 => {