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