@@ -180,13 +180,18 @@ impl<'a> CertConsumer for ASN1Writer<'a> {
180
180
self . write_str ( 0x02 , i)
181
181
}
182
182
183
+ fn printstr ( & mut self , _tag : & str , s : & str ) -> Result < ( ) , Error > {
184
+ // Note: ASN1 has multiple strings, this is PrintableString
185
+ self . write_str ( 0x13 , s. as_bytes ( ) )
186
+ }
187
+
183
188
fn utf8str ( & mut self , _tag : & str , s : & str ) -> Result < ( ) , Error > {
184
- // Note: ASN1 has 3 string , this is UTF8String
189
+ // Note: ASN1 has multiple strings , this is UTF8String
185
190
self . write_str ( 0x0c , s. as_bytes ( ) )
186
191
}
187
192
188
193
fn bitstr ( & mut self , _tag : & str , truncate : bool , s : & [ u8 ] ) -> Result < ( ) , Error > {
189
- // Note: ASN1 has 3 string , this is BIT String
194
+ // Note: ASN1 has multiple strings , this is BIT String
190
195
191
196
// Strip off the end zeroes
192
197
let mut last_byte = s. len ( ) - 1 ;
@@ -208,7 +213,7 @@ impl<'a> CertConsumer for ASN1Writer<'a> {
208
213
}
209
214
210
215
fn ostr ( & mut self , _tag : & str , s : & [ u8 ] ) -> Result < ( ) , Error > {
211
- // Note: ASN1 has 3 string , this is Octet String
216
+ // Note: ASN1 has multiple strings , this is Octet String
212
217
self . write_str ( 0x04 , s)
213
218
}
214
219
0 commit comments