Vanetza
 
Loading...
Searching...
No Matches
AuthorizationResponseCode.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "EtsiTs102941TypesAuthorization"
4 * found in "asn1/TS102941v131-TypesAuthorization.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "AuthorizationResponseCode.h"
9
10/*
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
13 */
14#if !defined(ASN_DISABLE_OER_SUPPORT)
15static asn_oer_constraints_t asn_OER_type_AuthorizationResponseCode_constr_1 CC_NOTUSED = {
16 { 0, 0 },
17 -1};
18#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
19#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
20asn_per_constraints_t asn_PER_type_AuthorizationResponseCode_constr_1 CC_NOTUSED = {
21 { APC_CONSTRAINED | APC_EXTENSIBLE, 5, 5, 0, 26 } /* (0..26,...) */,
22 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
23 0, 0 /* No PER value map */
24};
25#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
26static const asn_INTEGER_enum_map_t asn_MAP_AuthorizationResponseCode_value2enum_1[] = {
27 { 0, 2, "ok" },
28 { 1, 16, "its-aa-cantparse" },
29 { 2, 21, "its-aa-badcontenttype" },
30 { 3, 24, "its-aa-imnottherecipient" },
31 { 4, 33, "its-aa-unknownencryptionalgorithm" },
32 { 5, 23, "its-aa-decryptionfailed" },
33 { 6, 20, "its-aa-keysdontmatch" },
34 { 7, 24, "its-aa-incompleterequest" },
35 { 8, 27, "its-aa-invalidencryptionkey" },
36 { 9, 23, "its-aa-outofsyncrequest" },
37 { 10, 16, "its-aa-unknownea" },
38 { 11, 16, "its-aa-invalidea" },
39 { 12, 24, "its-aa-deniedpermissions" },
40 { 13, 17, "aa-ea-cantreachea" },
41 { 14, 15, "ea-aa-cantparse" },
42 { 15, 20, "ea-aa-badcontenttype" },
43 { 16, 23, "ea-aa-imnottherecipient" },
44 { 17, 32, "ea-aa-unknownencryptionalgorithm" },
45 { 18, 22, "ea-aa-decryptionfailed" },
46 { 19, 9, "invalidaa" },
47 { 20, 18, "invalidaasignature" },
48 { 21, 7, "wrongea" },
49 { 22, 10, "unknownits" },
50 { 23, 16, "invalidsignature" },
51 { 24, 20, "invalidencryptionkey" },
52 { 25, 17, "deniedpermissions" },
53 { 26, 18, "deniedtoomanycerts" }
54 /* This list is extensible */
55};
56static const unsigned int asn_MAP_AuthorizationResponseCode_enum2value_1[] = {
57 13, /* aa-ea-cantreachea(13) */
58 25, /* deniedpermissions(25) */
59 26, /* deniedtoomanycerts(26) */
60 15, /* ea-aa-badcontenttype(15) */
61 14, /* ea-aa-cantparse(14) */
62 18, /* ea-aa-decryptionfailed(18) */
63 16, /* ea-aa-imnottherecipient(16) */
64 17, /* ea-aa-unknownencryptionalgorithm(17) */
65 19, /* invalidaa(19) */
66 20, /* invalidaasignature(20) */
67 24, /* invalidencryptionkey(24) */
68 23, /* invalidsignature(23) */
69 2, /* its-aa-badcontenttype(2) */
70 1, /* its-aa-cantparse(1) */
71 5, /* its-aa-decryptionfailed(5) */
72 12, /* its-aa-deniedpermissions(12) */
73 3, /* its-aa-imnottherecipient(3) */
74 7, /* its-aa-incompleterequest(7) */
75 11, /* its-aa-invalidea(11) */
76 8, /* its-aa-invalidencryptionkey(8) */
77 6, /* its-aa-keysdontmatch(6) */
78 9, /* its-aa-outofsyncrequest(9) */
79 10, /* its-aa-unknownea(10) */
80 4, /* its-aa-unknownencryptionalgorithm(4) */
81 0, /* ok(0) */
82 22, /* unknownits(22) */
83 21 /* wrongea(21) */
84 /* This list is extensible */
85};
86const asn_INTEGER_specifics_t asn_SPC_AuthorizationResponseCode_specs_1 = {
87 asn_MAP_AuthorizationResponseCode_value2enum_1, /* "tag" => N; sorted by tag */
88 asn_MAP_AuthorizationResponseCode_enum2value_1, /* N => "tag"; sorted by N */
89 27, /* Number of elements in the maps */
90 28, /* Extensions before this member */
91 1, /* Strict enumeration */
92 0, /* Native long size */
93 0
94};
95static const ber_tlv_tag_t asn_DEF_AuthorizationResponseCode_tags_1[] = {
96 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
97};
98asn_TYPE_descriptor_t asn_DEF_AuthorizationResponseCode = {
99 "AuthorizationResponseCode",
100 "AuthorizationResponseCode",
101 &asn_OP_NativeEnumerated,
102 asn_DEF_AuthorizationResponseCode_tags_1,
103 sizeof(asn_DEF_AuthorizationResponseCode_tags_1)
104 /sizeof(asn_DEF_AuthorizationResponseCode_tags_1[0]), /* 1 */
105 asn_DEF_AuthorizationResponseCode_tags_1, /* Same as above */
106 sizeof(asn_DEF_AuthorizationResponseCode_tags_1)
107 /sizeof(asn_DEF_AuthorizationResponseCode_tags_1[0]), /* 1 */
108 {
109#if !defined(ASN_DISABLE_OER_SUPPORT)
110 &asn_OER_type_AuthorizationResponseCode_constr_1,
111#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
112#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
113 &asn_PER_type_AuthorizationResponseCode_constr_1,
114#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
115 NativeEnumerated_constraint
116 },
117 0, 0, /* Defined elsewhere */
118 &asn_SPC_AuthorizationResponseCode_specs_1 /* Additional specs */
119};
120