Vanetza
 
Loading...
Searching...
No Matches
AuthorizationValidationResponseCode.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "EtsiTs102941TypesAuthorizationValidation"
4 * found in "asn1/TS102941v131-TypesAuthorizationValidation.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "AuthorizationValidationResponseCode.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_AuthorizationValidationResponseCode_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_AuthorizationValidationResponseCode_constr_1 CC_NOTUSED = {
21 { APC_CONSTRAINED | APC_EXTENSIBLE, 4, 4, 0, 14 } /* (0..14,...) */,
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_AuthorizationValidationResponseCode_value2enum_1[] = {
27 { 0, 2, "ok" },
28 { 1, 9, "cantparse" },
29 { 2, 14, "badcontenttype" },
30 { 3, 17, "imnottherecipient" },
31 { 4, 26, "unknownencryptionalgorithm" },
32 { 5, 16, "decryptionfailed" },
33 { 6, 9, "invalidaa" },
34 { 7, 18, "invalidaasignature" },
35 { 8, 7, "wrongea" },
36 { 9, 10, "unknownits" },
37 { 10, 16, "invalidsignature" },
38 { 11, 20, "invalidencryptionkey" },
39 { 12, 17, "deniedpermissions" },
40 { 13, 18, "deniedtoomanycerts" },
41 { 14, 13, "deniedrequest" }
42 /* This list is extensible */
43};
44static const unsigned int asn_MAP_AuthorizationValidationResponseCode_enum2value_1[] = {
45 2, /* badcontenttype(2) */
46 1, /* cantparse(1) */
47 5, /* decryptionfailed(5) */
48 12, /* deniedpermissions(12) */
49 14, /* deniedrequest(14) */
50 13, /* deniedtoomanycerts(13) */
51 3, /* imnottherecipient(3) */
52 6, /* invalidaa(6) */
53 7, /* invalidaasignature(7) */
54 11, /* invalidencryptionkey(11) */
55 10, /* invalidsignature(10) */
56 0, /* ok(0) */
57 4, /* unknownencryptionalgorithm(4) */
58 9, /* unknownits(9) */
59 8 /* wrongea(8) */
60 /* This list is extensible */
61};
62const asn_INTEGER_specifics_t asn_SPC_AuthorizationValidationResponseCode_specs_1 = {
63 asn_MAP_AuthorizationValidationResponseCode_value2enum_1, /* "tag" => N; sorted by tag */
64 asn_MAP_AuthorizationValidationResponseCode_enum2value_1, /* N => "tag"; sorted by N */
65 15, /* Number of elements in the maps */
66 16, /* Extensions before this member */
67 1, /* Strict enumeration */
68 0, /* Native long size */
69 0
70};
71static const ber_tlv_tag_t asn_DEF_AuthorizationValidationResponseCode_tags_1[] = {
72 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
73};
74asn_TYPE_descriptor_t asn_DEF_AuthorizationValidationResponseCode = {
75 "AuthorizationValidationResponseCode",
76 "AuthorizationValidationResponseCode",
77 &asn_OP_NativeEnumerated,
78 asn_DEF_AuthorizationValidationResponseCode_tags_1,
79 sizeof(asn_DEF_AuthorizationValidationResponseCode_tags_1)
80 /sizeof(asn_DEF_AuthorizationValidationResponseCode_tags_1[0]), /* 1 */
81 asn_DEF_AuthorizationValidationResponseCode_tags_1, /* Same as above */
82 sizeof(asn_DEF_AuthorizationValidationResponseCode_tags_1)
83 /sizeof(asn_DEF_AuthorizationValidationResponseCode_tags_1[0]), /* 1 */
84 {
85#if !defined(ASN_DISABLE_OER_SUPPORT)
86 &asn_OER_type_AuthorizationValidationResponseCode_constr_1,
87#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
88#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
89 &asn_PER_type_AuthorizationValidationResponseCode_constr_1,
90#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
91 NativeEnumerated_constraint
92 },
93 0, 0, /* Defined elsewhere */
94 &asn_SPC_AuthorizationValidationResponseCode_specs_1 /* Additional specs */
95};
96