-
Notifications
You must be signed in to change notification settings - Fork 0
/
asn1p_expr_str.h
61 lines (57 loc) · 2.13 KB
/
asn1p_expr_str.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* This file is automatically generated by ./expr-h.pl
* DO NOT EDIT MANUALLY, fix the ./expr-h.pl instead if necessary.
*/
#ifndef ASN1_PARSER_EXPR_STR_H
#define ASN1_PARSER_EXPR_STR_H
#ifndef __GNUC__
#define __attribute__(x) /* unused */
#endif
static char *asn1p_expr_type2str[] __attribute__ ((unused)) = {
[ ASN_CONSTR_SEQUENCE ] = "SEQUENCE",
[ ASN_CONSTR_CHOICE ] = "CHOICE",
[ ASN_CONSTR_SET ] = "SET",
[ ASN_CONSTR_SEQUENCE_OF ] = "SEQUENCE OF",
[ ASN_CONSTR_SET_OF ] = "SET OF",
[ ASN_TYPE_ANY ] = "ANY",
[ ASN_BASIC_BOOLEAN ] = "BOOLEAN",
[ ASN_BASIC_NULL ] = "NULL",
[ ASN_BASIC_INTEGER ] = "INTEGER",
[ ASN_BASIC_REAL ] = "REAL",
[ ASN_BASIC_ENUMERATED ] = "ENUMERATED",
[ ASN_BASIC_BIT_STRING ] = "BIT STRING",
[ ASN_BASIC_OCTET_STRING ] = "OCTET STRING",
[ ASN_BASIC_OBJECT_IDENTIFIER ] = "OBJECT IDENTIFIER",
[ ASN_BASIC_RELATIVE_OID ] = "RELATIVE-OID",
[ ASN_BASIC_EXTERNAL ] = "EXTERNAL",
[ ASN_BASIC_EMBEDDED_PDV ] = "EMBEDDED PDV",
[ ASN_BASIC_CHARACTER_STRING ] = "CHARACTER STRING",
[ ASN_BASIC_UTCTime ] = "UTCTime",
[ ASN_BASIC_GeneralizedTime ] = "GeneralizedTime",
[ ASN_STRING_IA5String ] = "IA5String",
[ ASN_STRING_PrintableString ] = "PrintableString",
[ ASN_STRING_VisibleString ] = "VisibleString",
[ ASN_STRING_ISO646String ] = "ISO646String",
[ ASN_STRING_NumericString ] = "NumericString",
[ 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_ObjectDescriptor ] = "ObjectDescriptor",
};
/*
* Convert the ASN.1 expression type back into the string representation.
*/
#define ASN_EXPR_TYPE2STR(type) \
( \
(((ssize_t)(type)) < 0 \
|| ((size_t)(type)) >= sizeof(asn1p_expr_type2str) \
/ sizeof(asn1p_expr_type2str[0])) \
? (char *)0 \
: asn1p_expr_type2str[(int)(type)] \
)
#endif /* ASN1_PARSER_EXPR_STR_H */