File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ fn encode_name_bytes<'p>(
144
144
pub ( crate ) struct UnvalidatedIA5String < ' a > ( pub ( crate ) & ' a str ) ;
145
145
146
146
impl < ' a > asn1:: SimpleAsn1Readable < ' a > for UnvalidatedIA5String < ' a > {
147
- const TAG : u8 = 0x16 ;
147
+ const TAG : u8 = asn1 :: IA5String :: TAG ;
148
148
fn parse_data ( data : & ' a [ u8 ] ) -> asn1:: ParseResult < Self > {
149
149
Ok ( UnvalidatedIA5String ( std:: str:: from_utf8 ( data) . map_err (
150
150
|_| asn1:: ParseError :: new ( asn1:: ParseErrorKind :: InvalidValue ) ,
@@ -153,7 +153,7 @@ impl<'a> asn1::SimpleAsn1Readable<'a> for UnvalidatedIA5String<'a> {
153
153
}
154
154
155
155
impl < ' a > asn1:: SimpleAsn1Writable < ' a > for UnvalidatedIA5String < ' a > {
156
- const TAG : u8 = 0x16 ;
156
+ const TAG : u8 = asn1 :: IA5String :: TAG ;
157
157
fn write_data ( & self , dest : & mut Vec < u8 > ) {
158
158
dest. extend_from_slice ( self . 0 . as_bytes ( ) ) ;
159
159
}
You can’t perform that action at this time.
0 commit comments