Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asn1c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qwebaby3
asn1c
Commits
e422e68b
Commit
e422e68b
authored
20 years ago
by
Lev Walkin
Browse files
Options
Downloads
Patches
Plain Diff
separated known multiplier (X.691) strings
parent
2b4c0594
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libasn1parser/asn1p_expr.h
+12
-9
12 additions, 9 deletions
libasn1parser/asn1p_expr.h
libasn1parser/asn1p_expr_str.h
+7
-7
7 additions, 7 deletions
libasn1parser/asn1p_expr_str.h
with
19 additions
and
16 deletions
libasn1parser/asn1p_expr.h
+
12
−
9
View file @
e422e68b
...
...
@@ -53,6 +53,7 @@ typedef enum asn1p_expr_type {
ASN_CONSTR_SEQUENCE_OF
,
/* SEQUENCE OF */
ASN_CONSTR_SET_OF
,
/* SET OF */
ASN_CONSTR_ANY
,
/* ANY (deprecated) */
/*
* ASN.1 Basic types
*/
...
...
@@ -75,20 +76,22 @@ typedef enum asn1p_expr_type {
/*
* ASN.1 String types
*/
#define ASN_STRING_MASK 0x40
/* Every string type */
ASN_STRING_BMPString
=
ASN_STRING_MASK
,
#define ASN_STRING_KM_MASK 0x40
/* Known multiplier */
#define ASN_STRING_NKM_MASK 0x80
/* Not a known multiplier */
#define ASN_STRING_MASK 0xC0
/* Every restricted string type */
ASN_STRING_IA5String
=
ASN_STRING_KM_MASK
,
ASN_STRING_PrintableString
,
ASN_STRING_VisibleString
,
ASN_STRING_ISO646String
,
/* aka VisibleString */
ASN_STRING_NumericString
,
ASN_STRING_UniversalString
,
ASN_STRING_BMPString
,
ASN_STRING_UTF8String
=
ASN_STRING_NKM_MASK
,
ASN_STRING_GeneralString
,
ASN_STRING_GraphicString
,
ASN_STRING_IA5String
,
ASN_STRING_ISO646String
,
ASN_STRING_NumericString
,
ASN_STRING_PrintableString
,
ASN_STRING_TeletexString
,
ASN_STRING_T61String
,
ASN_STRING_UniversalString
,
ASN_STRING_UTF8String
,
ASN_STRING_VideotexString
,
ASN_STRING_VisibleString
,
ASN_STRING_ObjectDescriptor
,
ASN_EXPR_TYPE_MAX
}
asn1p_expr_type_e
;
...
...
This diff is collapsed.
Click to expand it.
libasn1parser/asn1p_expr_str.h
+
7
−
7
View file @
e422e68b
...
...
@@ -26,19 +26,19 @@ static char *asn1p_expr_type2str[] __attribute__ ((unused)) = {
[
ASN_BASIC_CHARACTER_STRING
]
=
"CHARACTER STRING"
,
[
ASN_BASIC_UTCTime
]
=
"UTCTime"
,
[
ASN_BASIC_GeneralizedTime
]
=
"GeneralizedTime"
,
[
ASN_STRING_BMPString
]
=
"BMPString"
,
[
ASN_STRING_GeneralString
]
=
"GeneralString"
,
[
ASN_STRING_GraphicString
]
=
"GraphicString"
,
[
ASN_STRING_IA5String
]
=
"IA5String"
,
[
ASN_STRING_PrintableString
]
=
"PrintableString"
,
[
ASN_STRING_VisibleString
]
=
"VisibleString"
,
[
ASN_STRING_ISO646String
]
=
"ISO646String"
,
[
ASN_STRING_NumericString
]
=
"NumericString"
,
[
ASN_STRING_PrintableString
]
=
"PrintableString"
,
[
ASN_STRING_TeletexString
]
=
"TeletexString"
,
[
ASN_STRING_T61String
]
=
"T61String"
,
[
ASN_STRING_UniversalString
]
=
"UniversalString"
,
[
ASN_STRING_BMPString
]
=
"BMPString"
,
[
ASN_STRING_UTF8String
]
=
"UTF8String"
,
[
ASN_STRING_GeneralString
]
=
"GeneralString"
,
[
ASN_STRING_GraphicString
]
=
"GraphicString"
,
[
ASN_STRING_TeletexString
]
=
"TeletexString"
,
[
ASN_STRING_T61String
]
=
"T61String"
,
[
ASN_STRING_VideotexString
]
=
"VideotexString"
,
[
ASN_STRING_VisibleString
]
=
"VisibleString"
,
[
ASN_STRING_ObjectDescriptor
]
=
"ObjectDescriptor"
,
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment