@@ -34,6 +34,9 @@ pub(crate) enum Asn1Type {
34
34
35
35
/// ASN.1 `UTF8String`.
36
36
Utf8String ,
37
+
38
+ /// ASN.1 `BMPString`.
39
+ BmpString ,
37
40
}
38
41
39
42
impl Asn1Type {
@@ -49,6 +52,7 @@ impl Asn1Type {
49
52
Asn1Type :: VideotexString => quote ! ( :: der:: Tag :: VideotexString ) ,
50
53
Asn1Type :: UtcTime => quote ! ( :: der:: Tag :: UtcTime ) ,
51
54
Asn1Type :: Utf8String => quote ! ( :: der:: Tag :: Utf8String ) ,
55
+ Asn1Type :: BmpString => quote ! ( :: der:: Tag :: BmpString ) ,
52
56
}
53
57
}
54
58
@@ -82,6 +86,7 @@ impl Asn1Type {
82
86
Asn1Type :: VideotexString => quote ! ( :: der:: asn1:: VideotexStringRef ) ,
83
87
Asn1Type :: UtcTime => quote ! ( :: der:: asn1:: UtcTime ) ,
84
88
Asn1Type :: Utf8String => quote ! ( :: der:: asn1:: Utf8StringRef ) ,
89
+ Asn1Type :: BmpString => quote ! ( :: der:: asn1:: BmpString ) ,
85
90
}
86
91
}
87
92
}
@@ -100,6 +105,7 @@ impl FromStr for Asn1Type {
100
105
"VideotexString" => Ok ( Self :: VideotexString ) ,
101
106
"UTCTime" => Ok ( Self :: UtcTime ) ,
102
107
"UTF8String" => Ok ( Self :: Utf8String ) ,
108
+ "BMPString" => Ok ( Self :: BmpString ) ,
103
109
_ => Err ( ParseError ) ,
104
110
}
105
111
}
@@ -117,6 +123,7 @@ impl fmt::Display for Asn1Type {
117
123
Asn1Type :: VideotexString => "VideotexString" ,
118
124
Asn1Type :: UtcTime => "UTCTime" ,
119
125
Asn1Type :: Utf8String => "UTF8String" ,
126
+ Asn1Type :: BmpString => "BMPString" ,
120
127
} )
121
128
}
122
129
}
0 commit comments