Vanetza
 
Loading...
Searching...
No Matches
EtsiTs103097Data-Encrypted.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "EtsiTs103097Module"
4 * found in "asn1/TS103097v131.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "EtsiTs103097Data-Encrypted.h"
9
10int
11EtsiTs103097Data_Encrypted_85P0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
14 if(!sptr) {
15 ASN__CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
19 }
20
21
22 if(1 /* No applicable constraints whatsoever */) {
23 /* Nothing is here. See below */
24 }
25
26 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
27}
28
29/*
30 * This type is implemented using EtsiTs103097Data,
31 * so here we adjust the DEF accordingly.
32 */
33int
34EtsiTs103097Data_Encrypted_85P1_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
35 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
36
37 if(!sptr) {
38 ASN__CTFAIL(app_key, td, sptr,
39 "%s: value not given (%s:%d)",
40 td->name, __FILE__, __LINE__);
41 return -1;
42 }
43
44
45 if(1 /* No applicable constraints whatsoever */) {
46 /* Nothing is here. See below */
47 }
48
49 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
50}
51
52/*
53 * This type is implemented using EtsiTs103097Data,
54 * so here we adjust the DEF accordingly.
55 */
56int
57EtsiTs103097Data_Encrypted_85P2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
58 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
59
60 if(!sptr) {
61 ASN__CTFAIL(app_key, td, sptr,
62 "%s: value not given (%s:%d)",
63 td->name, __FILE__, __LINE__);
64 return -1;
65 }
66
67
68 if(1 /* No applicable constraints whatsoever */) {
69 /* Nothing is here. See below */
70 }
71
72 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
73}
74
75/*
76 * This type is implemented using EtsiTs103097Data,
77 * so here we adjust the DEF accordingly.
78 */
79#if !defined(ASN_DISABLE_OER_SUPPORT)
80static asn_oer_constraints_t asn_OER_type_EtsiTs103097Data_Encrypted_85P0_constr_1 CC_NOTUSED = {
81 { 0, 0 },
82 -1};
83#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
84#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
85asn_per_constraints_t asn_PER_type_EtsiTs103097Data_Encrypted_85P0_constr_1 CC_NOTUSED = {
86 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
87 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
88 0, 0 /* No PER value map */
89};
90#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
91#if !defined(ASN_DISABLE_OER_SUPPORT)
92static asn_oer_constraints_t asn_OER_type_EtsiTs103097Data_Encrypted_85P1_constr_2 CC_NOTUSED = {
93 { 0, 0 },
94 -1};
95#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
96#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
97asn_per_constraints_t asn_PER_type_EtsiTs103097Data_Encrypted_85P1_constr_2 CC_NOTUSED = {
98 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
99 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
100 0, 0 /* No PER value map */
101};
102#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
103#if !defined(ASN_DISABLE_OER_SUPPORT)
104static asn_oer_constraints_t asn_OER_type_EtsiTs103097Data_Encrypted_85P2_constr_3 CC_NOTUSED = {
105 { 0, 0 },
106 -1};
107#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
108#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
109asn_per_constraints_t asn_PER_type_EtsiTs103097Data_Encrypted_85P2_constr_3 CC_NOTUSED = {
110 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
111 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
112 0, 0 /* No PER value map */
113};
114#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
115static const ber_tlv_tag_t asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1[] = {
116 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
117};
118asn_TYPE_descriptor_t asn_DEF_EtsiTs103097Data_Encrypted_85P0 = {
119 "EtsiTs103097Data-Encrypted",
120 "EtsiTs103097Data-Encrypted",
121 &asn_OP_SEQUENCE,
122 asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1,
123 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1)
124 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1[0]), /* 1 */
125 asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1, /* Same as above */
126 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1)
127 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P0_tags_1[0]), /* 1 */
128 {
129#if !defined(ASN_DISABLE_OER_SUPPORT)
130 &asn_OER_type_EtsiTs103097Data_Encrypted_85P0_constr_1,
131#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
132#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
133 &asn_PER_type_EtsiTs103097Data_Encrypted_85P0_constr_1,
134#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
135 EtsiTs103097Data_Encrypted_85P0_constraint
136 },
137 asn_MBR_Ieee1609Dot2Data_1,
138 2, /* Elements count */
139 &asn_SPC_Ieee1609Dot2Data_specs_1 /* Additional specs */
140};
141
142static const ber_tlv_tag_t asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2[] = {
143 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
144};
145asn_TYPE_descriptor_t asn_DEF_EtsiTs103097Data_Encrypted_85P1 = {
146 "EtsiTs103097Data-Encrypted",
147 "EtsiTs103097Data-Encrypted",
148 &asn_OP_SEQUENCE,
149 asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2,
150 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2)
151 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2[0]), /* 1 */
152 asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2, /* Same as above */
153 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2)
154 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P1_tags_2[0]), /* 1 */
155 {
156#if !defined(ASN_DISABLE_OER_SUPPORT)
157 &asn_OER_type_EtsiTs103097Data_Encrypted_85P1_constr_2,
158#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
159#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
160 &asn_PER_type_EtsiTs103097Data_Encrypted_85P1_constr_2,
161#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
162 EtsiTs103097Data_Encrypted_85P1_constraint
163 },
164 asn_MBR_Ieee1609Dot2Data_1,
165 2, /* Elements count */
166 &asn_SPC_Ieee1609Dot2Data_specs_1 /* Additional specs */
167};
168
169static const ber_tlv_tag_t asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3[] = {
170 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
171};
172asn_TYPE_descriptor_t asn_DEF_EtsiTs103097Data_Encrypted_85P2 = {
173 "EtsiTs103097Data-Encrypted",
174 "EtsiTs103097Data-Encrypted",
175 &asn_OP_SEQUENCE,
176 asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3,
177 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3)
178 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3[0]), /* 1 */
179 asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3, /* Same as above */
180 sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3)
181 /sizeof(asn_DEF_EtsiTs103097Data_Encrypted_85P2_tags_3[0]), /* 1 */
182 {
183#if !defined(ASN_DISABLE_OER_SUPPORT)
184 &asn_OER_type_EtsiTs103097Data_Encrypted_85P2_constr_3,
185#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
186#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
187 &asn_PER_type_EtsiTs103097Data_Encrypted_85P2_constr_3,
188#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
189 EtsiTs103097Data_Encrypted_85P2_constraint
190 },
191 asn_MBR_Ieee1609Dot2Data_1,
192 2, /* Elements count */
193 &asn_SPC_Ieee1609Dot2Data_specs_1 /* Additional specs */
194};
195