Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rasn-compiler/src/intermediate/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub const UTF8_STRING: &str = "UTF8String";
pub const NUMERIC_STRING: &str = "NumericString";
pub const VISIBLE_STRING: &str = "VisibleString";
pub const TELETEX_STRING: &str = "TeletexString";
pub const T61_STRING: &str = "T61String";
pub const VIDEOTEX_STRING: &str = "VideotexString";
pub const GRAPHIC_STRING: &str = "GraphicString";
pub const GENERAL_STRING: &str = "GeneralString";
Expand Down Expand Up @@ -943,6 +944,10 @@ impl ASN1Type {
constraints,
ty: CharacterStringType::TeletexString,
}),
(None, T61_STRING) => ASN1Type::CharacterString(CharacterString {
constraints,
ty: CharacterStringType::TeletexString,
}),
(None, IA5_STRING) => ASN1Type::CharacterString(CharacterString {
constraints,
ty: CharacterStringType::IA5String,
Expand Down Expand Up @@ -1083,6 +1088,7 @@ impl From<&str> for CharacterStringType {
NUMERIC_STRING => Self::NumericString,
VISIBLE_STRING => Self::VisibleString,
TELETEX_STRING => Self::TeletexString,
T61_STRING => Self::TeletexString,
VIDEOTEX_STRING => Self::VideotexString,
GRAPHIC_STRING => Self::GraphicString,
GENERAL_STRING => Self::GeneralString,
Expand Down
1 change: 1 addition & 0 deletions rasn-compiler/src/lexer/character_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ pub fn character_string(input: Input<'_>) -> ParserResult<'_, ASN1Type> {
tag(NUMERIC_STRING),
tag(VISIBLE_STRING),
tag(TELETEX_STRING),
tag(T61_STRING),
tag(VIDEOTEX_STRING),
tag(GRAPHIC_STRING),
tag(GENERAL_STRING),
Expand Down
Loading