Skip to content
Snippets Groups Projects
Commit 0c735e9f authored by Lev Walkin's avatar Lev Walkin
Browse files

uclass2str

parent 04d7be4a
No related branches found
No related tags found
No related merge requests found
#ifndef ASN1_PARSER_EXPR2UCLASS_H
#define ASN1_PARSER_EXPR2UCLASS_H
static int
expr_type2uclass_value[ASN_EXPR_TYPE_MAX]
static int expr_type2uclass_value[ASN_EXPR_TYPE_MAX]
__attribute__ ((unused)) = {
[ ASN_BASIC_BOOLEAN ] = 1,
[ ASN_BASIC_INTEGER ] = 2,
......@@ -38,4 +37,37 @@ expr_type2uclass_value[ASN_EXPR_TYPE_MAX]
[ ASN_STRING_BMPString ] = 30,
};
static char *expr_uclass2str[32] __attribute__ ((unused)) = {
[ 0 ] = 0, /* If zero length, end-of-content */
[ 1 ] = "BOOLEAN",
[ 2 ] = "INTEGER",
[ 3 ] = "BIT STRING",
[ 4 ] = "OCTET STRING",
[ 5 ] = "NULL",
[ 6 ] = "OBJECT IDENTIFIER",
[ 7 ] = "ObjectDescriptor",
[ 8 ] = "EXTERNAL",
[ 9 ] = "REAL",
[ 10 ] = "ENUMERATED",
[ 11 ] = "EMBEDDED-PDV",
[ 12 ] = "UTF8String",
[ 13 ] = "RELATIVE-OID",
[ 14 ] = 0,
[ 16 ] = "SEQUENCE", /* Or "SEQUENCE OF" */
[ 17 ] = "SET", /* Or "SET OF" */
[ 18 ] = "NumericString", /* " "|"0".."9" */
[ 19 ] = "PrintableString",
[ 20 ] = "TeletexString",
[ 21 ] = "VideotexString",
[ 22 ] = "IA5String",
[ 23 ] = "UTCTime",
[ 24 ] = "GeneralizedTime",
[ 25 ] = "GraphicString",
[ 26 ] = "VisibleString",
[ 27 ] = "GeneralString",
[ 28 ] = "UniversalString", /* 32-bit UCS-4 */
[ 29 ] = "CharacterString",
[ 30 ] = "BMPString", /* 16-bit UCS-2 */
};
#endif /* ASN1_PARSER_EXPR2UCLASS_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment