Vanetza
Loading...
Searching...
No Matches
Extension.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2BaseTypes"
4 * found in "Ieee1609Dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
8#include "Extension.h"
9
10static const long asn_VAL_1_Vanetza_Security_etsiTs102941CrlRequestId = 1;
11static const long asn_VAL_2_Vanetza_Security_etsiTs102941DeltaCtlRequestId = 2;
12static const long asn_VAL_3_Vanetza_Security_etsiTs102941FullCtlRequestId = 3;
13static const asn_ioc_cell_t asn_IOS_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1_rows[] = {
14 { "&extId", aioc__value, &asn_DEF_Vanetza_Security_ExtId, &asn_VAL_1_Vanetza_Security_etsiTs102941CrlRequestId },
15 { "&ExtContent", aioc__type, &asn_DEF_Vanetza_Security_EtsiTs102941CrlRequest },
16 { "&extId", aioc__value, &asn_DEF_Vanetza_Security_ExtId, &asn_VAL_2_Vanetza_Security_etsiTs102941DeltaCtlRequestId },
17 { "&ExtContent", aioc__type, &asn_DEF_Vanetza_Security_EtsiTs102941DeltaCtlRequest },
18 { "&extId", aioc__value, &asn_DEF_Vanetza_Security_ExtId, &asn_VAL_3_Vanetza_Security_etsiTs102941FullCtlRequestId },
19 { "&ExtContent", aioc__type, &asn_DEF_Vanetza_Security_EtsiTs102941FullCtlRequest }
20};
21static const asn_ioc_set_t asn_IOS_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1[] = {
22 { 3, 2, asn_IOS_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1_rows }
23};
24static const long asn_VAL_4_Vanetza_Security_p2pcd8ByteLearningRequestId = 1;
25static const asn_ioc_cell_t asn_IOS_Vanetza_Security_Ieee1609HeaderInfoExtensions_1_rows[] = {
26 { "&extId", aioc__value, &asn_DEF_Vanetza_Security_ExtId, &asn_VAL_4_Vanetza_Security_p2pcd8ByteLearningRequestId },
27 { "&ExtContent", aioc__type, &asn_DEF_Vanetza_Security_HashedId8 }
28};
29static const asn_ioc_set_t asn_IOS_Vanetza_Security_Ieee1609HeaderInfoExtensions_1[] = {
30 { 1, 2, asn_IOS_Vanetza_Security_Ieee1609HeaderInfoExtensions_1_rows }
31};
32static int
33memb_Vanetza_Security_id_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
34 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
35 long value;
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 value = *(const long *)sptr;
45
46 if((value >= 0L && value <= 255L)) {
47 /* Constraint check succeeded */
48 return 0;
49 } else {
50 ASN__CTFAIL(app_key, td, sptr,
51 "%s: constraint failed (%s:%d)",
52 td->name, __FILE__, __LINE__);
53 return -1;
54 }
55}
56
57static asn_type_selector_result_t
58select_EtsiTs103097HeaderInfoExtensions_Vanetza_Security_content_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
59 asn_type_selector_result_t result = {0, 0};
60 const asn_ioc_set_t *itable = asn_IOS_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1;
61 size_t constraining_column = 0; /* &extId */
62 size_t for_column = 1; /* &ExtContent */
63 size_t row, presence_index = 0;
64 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions, id));
65
66 for(row=0; row < itable->rows_count; row++) {
67 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
68 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
69
70 if(type_cell->cell_kind == aioc__undefined)
71 continue;
72
73 presence_index++;
74 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
75 result.type_descriptor = type_cell->type_descriptor;
76 result.presence_index = presence_index;
77 break;
78 }
79 }
80
81 return result;
82}
83
84static int
85memb_Vanetza_Security_content_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
86 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
87
88 if(!sptr) {
89 ASN__CTFAIL(app_key, td, sptr,
90 "%s: value not given (%s:%d)",
91 td->name, __FILE__, __LINE__);
92 return -1;
93 }
94
95
96 if(1 /* No applicable constraints whatsoever */) {
97 /* Nothing is here. See below */
98 }
99
100 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
101}
102
103static int
104memb_Vanetza_Security_id_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr,
105 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
106 long value;
107
108 if(!sptr) {
109 ASN__CTFAIL(app_key, td, sptr,
110 "%s: value not given (%s:%d)",
111 td->name, __FILE__, __LINE__);
112 return -1;
113 }
114
115 value = *(const long *)sptr;
116
117 if((value >= 0L && value <= 255L)) {
118 /* Constraint check succeeded */
119 return 0;
120 } else {
121 ASN__CTFAIL(app_key, td, sptr,
122 "%s: constraint failed (%s:%d)",
123 td->name, __FILE__, __LINE__);
124 return -1;
125 }
126}
127
128static asn_type_selector_result_t
129select_Ieee1609HeaderInfoExtensions_Vanetza_Security_content_type(const asn_TYPE_descriptor_t *parent_type, const void *parent_sptr) {
130 asn_type_selector_result_t result = {0, 0};
131 const asn_ioc_set_t *itable = asn_IOS_Vanetza_Security_Ieee1609HeaderInfoExtensions_1;
132 size_t constraining_column = 0; /* &extId */
133 size_t for_column = 1; /* &ExtContent */
134 size_t row, presence_index = 0;
135 const long *constraining_value = (const long *)((const char *)parent_sptr + offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions, id));
136
137 for(row=0; row < itable->rows_count; row++) {
138 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
139 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
140
141 if(type_cell->cell_kind == aioc__undefined)
142 continue;
143
144 presence_index++;
145 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
146 result.type_descriptor = type_cell->type_descriptor;
147 result.presence_index = presence_index;
148 break;
149 }
150 }
151
152 return result;
153}
154
155static int
156memb_Vanetza_Security_content_constraint_4(const asn_TYPE_descriptor_t *td, const void *sptr,
157 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
158
159 if(!sptr) {
160 ASN__CTFAIL(app_key, td, sptr,
161 "%s: value not given (%s:%d)",
162 td->name, __FILE__, __LINE__);
163 return -1;
164 }
165
166
167 if(1 /* No applicable constraints whatsoever */) {
168 /* Nothing is here. See below */
169 }
170
171 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
172}
173
174#if !defined(ASN_DISABLE_OER_SUPPORT)
175static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_id_constr_2 CC_NOTUSED = {
176 { 1, 1 } /* (0..255) */,
177 -1};
178#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
179#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
180static asn_per_constraints_t asn_PER_memb_Vanetza_Security_id_constr_2 CC_NOTUSED = {
181 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
182 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
183 0, 0 /* No PER value map */
184};
185#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
186#if !defined(ASN_DISABLE_OER_SUPPORT)
187static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_content_constr_3 CC_NOTUSED = {
188 { 0, 0 },
189 -1};
190#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
191#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
192static asn_per_constraints_t asn_PER_memb_Vanetza_Security_content_constr_3 CC_NOTUSED = {
193 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
194 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
195 0, 0 /* No PER value map */
196};
197#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
198#if !defined(ASN_DISABLE_OER_SUPPORT)
199static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_id_constr_5 CC_NOTUSED = {
200 { 1, 1 } /* (0..255) */,
201 -1};
202#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
203#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
204static asn_per_constraints_t asn_PER_memb_Vanetza_Security_id_constr_5 CC_NOTUSED = {
205 { APC_CONSTRAINED, 8, 8, 0, 255 } /* (0..255) */,
206 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
207 0, 0 /* No PER value map */
208};
209#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
210#if !defined(ASN_DISABLE_OER_SUPPORT)
211static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_content_constr_6 CC_NOTUSED = {
212 { 0, 0 },
213 -1};
214#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
215#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
216static asn_per_constraints_t asn_PER_memb_Vanetza_Security_content_constr_6 CC_NOTUSED = {
217 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
218 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
219 0, 0 /* No PER value map */
220};
221#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
222static asn_TYPE_member_t asn_MBR_Vanetza_Security_content_3[] = {
223 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content, choice.EtsiTs102941CrlRequest),
224 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
225 0,
226 &asn_DEF_Vanetza_Security_EtsiTs102941CrlRequest,
227 0,
228 {
229#if !defined(ASN_DISABLE_OER_SUPPORT)
230 0,
231#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
232#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
233 0,
234#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
235#if !defined(ASN_DISABLE_JER_SUPPORT)
236 0,
237#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
238 0
239 },
240 0, 0, /* No default value */
241 "EtsiTs102941CrlRequest"
242 },
243 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content, choice.EtsiTs102941DeltaCtlRequest),
244 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
245 0,
246 &asn_DEF_Vanetza_Security_EtsiTs102941DeltaCtlRequest,
247 0,
248 {
249#if !defined(ASN_DISABLE_OER_SUPPORT)
250 0,
251#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
252#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
253 0,
254#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
255#if !defined(ASN_DISABLE_JER_SUPPORT)
256 0,
257#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
258 0
259 },
260 0, 0, /* No default value */
261 "EtsiTs102941DeltaCtlRequest"
262 },
263 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content, choice.EtsiTs102941FullCtlRequest),
264 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)),
265 0,
266 &asn_DEF_Vanetza_Security_EtsiTs102941FullCtlRequest,
267 0,
268 {
269#if !defined(ASN_DISABLE_OER_SUPPORT)
270 0,
271#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
272#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
273 0,
274#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
275#if !defined(ASN_DISABLE_JER_SUPPORT)
276 0,
277#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
278 0
279 },
280 0, 0, /* No default value */
281 "EtsiTs102941FullCtlRequest"
282 },
283};
284static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_content_tag2el_3[] = {
285 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 2 }, /* EtsiTs102941CrlRequest */
286 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 1 }, /* EtsiTs102941DeltaCtlRequest */
287 { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, -2, 0 } /* EtsiTs102941FullCtlRequest */
288};
289static asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_content_specs_3 = {
290 sizeof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content),
291 offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content, _asn_ctx),
292 offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content, present),
293 sizeof(((struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions__content *)0)->present),
294 asn_MAP_Vanetza_Security_content_tag2el_3,
295 3, /* Count of tags in the map */
296 0, 0,
297 -1 /* Extensions start */
298};
299static /* Use -fall-defs-global to expose */
300asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_content_3 = {
301 "content",
302 "content",
303 &asn_OP_OPEN_TYPE,
304 0, /* No effective tags (pointer) */
305 0, /* No effective tags (count) */
306 0, /* No tags (pointer) */
307 0, /* No tags (count) */
308 {
309#if !defined(ASN_DISABLE_OER_SUPPORT)
310 0,
311#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
312#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
313 0,
314#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
315#if !defined(ASN_DISABLE_JER_SUPPORT)
316 0,
317#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
318 OPEN_TYPE_constraint
319 },
320 asn_MBR_Vanetza_Security_content_3,
321 3, /* Elements count */
322 &asn_SPC_Vanetza_Security_content_specs_3 /* Additional specs */
323};
324
325asn_TYPE_member_t asn_MBR_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1[] = {
326 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions, id),
327 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
328 -1, /* IMPLICIT tag at current level */
329 &asn_DEF_Vanetza_Security_ExtId,
330 0,
331 {
332#if !defined(ASN_DISABLE_OER_SUPPORT)
333 &asn_OER_memb_Vanetza_Security_id_constr_2,
334#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
335#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
336 &asn_PER_memb_Vanetza_Security_id_constr_2,
337#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
338#if !defined(ASN_DISABLE_JER_SUPPORT)
339 0,
340#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
341 memb_Vanetza_Security_id_constraint_1
342 },
343 0, 0, /* No default value */
344 "id"
345 },
346 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions, content),
347 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
348 +1, /* EXPLICIT tag at current level */
349 &asn_DEF_Vanetza_Security_content_3,
350 select_EtsiTs103097HeaderInfoExtensions_Vanetza_Security_content_type,
351 {
352#if !defined(ASN_DISABLE_OER_SUPPORT)
353 &asn_OER_memb_Vanetza_Security_content_constr_3,
354#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
355#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
356 &asn_PER_memb_Vanetza_Security_content_constr_3,
357#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
358#if !defined(ASN_DISABLE_JER_SUPPORT)
359 0,
360#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
361 memb_Vanetza_Security_content_constraint_1
362 },
363 0, 0, /* No default value */
364 "content"
365 },
366};
367static const ber_tlv_tag_t asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1[] = {
368 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
369};
370static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tag2el_1[] = {
371 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
372 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* content */
373};
374asn_SEQUENCE_specifics_t asn_SPC_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_specs_1 = {
375 sizeof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions),
376 offsetof(struct Vanetza_Security_EtsiTs103097HeaderInfoExtensions, _asn_ctx),
377 asn_MAP_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tag2el_1,
378 2, /* Count of tags in the map */
379 0, 0, 0, /* Optional elements (not needed) */
380 -1, /* First extension addition */
381};
382asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions = {
383 "EtsiTs103097HeaderInfoExtensions",
384 "EtsiTs103097HeaderInfoExtensions",
385 &asn_OP_SEQUENCE,
386 asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1,
387 sizeof(asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1)
388 /sizeof(asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1[0]), /* 1 */
389 asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1, /* Same as above */
390 sizeof(asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1)
391 /sizeof(asn_DEF_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_tags_1[0]), /* 1 */
392 {
393#if !defined(ASN_DISABLE_OER_SUPPORT)
394 0,
395#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
396#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
397 0,
398#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
399#if !defined(ASN_DISABLE_JER_SUPPORT)
400 0,
401#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
402 SEQUENCE_constraint
403 },
404 asn_MBR_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_1,
405 2, /* Elements count */
406 &asn_SPC_Vanetza_Security_EtsiTs103097HeaderInfoExtensions_specs_1 /* Additional specs */
407};
408
409static asn_TYPE_member_t asn_MBR_Vanetza_Security_content_6[] = {
410 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions__content, choice.HashedId8),
411 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
412 0,
413 &asn_DEF_Vanetza_Security_HashedId8,
414 0,
415 {
416#if !defined(ASN_DISABLE_OER_SUPPORT)
417 0,
418#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
419#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
420 0,
421#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
422#if !defined(ASN_DISABLE_JER_SUPPORT)
423 0,
424#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
425 0
426 },
427 0, 0, /* No default value */
428 "HashedId8"
429 },
430};
431static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_content_tag2el_6[] = {
432 { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 0, 0, 0 } /* HashedId8 */
433};
434static asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_content_specs_6 = {
435 sizeof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions__content),
436 offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions__content, _asn_ctx),
437 offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions__content, present),
438 sizeof(((struct Vanetza_Security_Ieee1609HeaderInfoExtensions__content *)0)->present),
439 asn_MAP_Vanetza_Security_content_tag2el_6,
440 1, /* Count of tags in the map */
441 0, 0,
442 -1 /* Extensions start */
443};
444static /* Use -fall-defs-global to expose */
445asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_content_6 = {
446 "content",
447 "content",
448 &asn_OP_OPEN_TYPE,
449 0, /* No effective tags (pointer) */
450 0, /* No effective tags (count) */
451 0, /* No tags (pointer) */
452 0, /* No tags (count) */
453 {
454#if !defined(ASN_DISABLE_OER_SUPPORT)
455 0,
456#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
457#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
458 0,
459#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
460#if !defined(ASN_DISABLE_JER_SUPPORT)
461 0,
462#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
463 OPEN_TYPE_constraint
464 },
465 asn_MBR_Vanetza_Security_content_6,
466 1, /* Elements count */
467 &asn_SPC_Vanetza_Security_content_specs_6 /* Additional specs */
468};
469
470asn_TYPE_member_t asn_MBR_Vanetza_Security_Ieee1609HeaderInfoExtensions_4[] = {
471 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions, id),
472 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
473 -1, /* IMPLICIT tag at current level */
474 &asn_DEF_Vanetza_Security_ExtId,
475 0,
476 {
477#if !defined(ASN_DISABLE_OER_SUPPORT)
478 &asn_OER_memb_Vanetza_Security_id_constr_5,
479#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
480#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
481 &asn_PER_memb_Vanetza_Security_id_constr_5,
482#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
483#if !defined(ASN_DISABLE_JER_SUPPORT)
484 0,
485#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
486 memb_Vanetza_Security_id_constraint_4
487 },
488 0, 0, /* No default value */
489 "id"
490 },
491 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions, content),
492 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
493 +1, /* EXPLICIT tag at current level */
494 &asn_DEF_Vanetza_Security_content_6,
495 select_Ieee1609HeaderInfoExtensions_Vanetza_Security_content_type,
496 {
497#if !defined(ASN_DISABLE_OER_SUPPORT)
498 &asn_OER_memb_Vanetza_Security_content_constr_6,
499#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
500#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
501 &asn_PER_memb_Vanetza_Security_content_constr_6,
502#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
503#if !defined(ASN_DISABLE_JER_SUPPORT)
504 0,
505#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
506 memb_Vanetza_Security_content_constraint_4
507 },
508 0, 0, /* No default value */
509 "content"
510 },
511};
512static const ber_tlv_tag_t asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4[] = {
513 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
514};
515static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_Ieee1609HeaderInfoExtensions_tag2el_4[] = {
516 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
517 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* content */
518};
519asn_SEQUENCE_specifics_t asn_SPC_Vanetza_Security_Ieee1609HeaderInfoExtensions_specs_4 = {
520 sizeof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions),
521 offsetof(struct Vanetza_Security_Ieee1609HeaderInfoExtensions, _asn_ctx),
522 asn_MAP_Vanetza_Security_Ieee1609HeaderInfoExtensions_tag2el_4,
523 2, /* Count of tags in the map */
524 0, 0, 0, /* Optional elements (not needed) */
525 -1, /* First extension addition */
526};
527asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions = {
528 "Ieee1609HeaderInfoExtensions",
529 "Ieee1609HeaderInfoExtensions",
530 &asn_OP_SEQUENCE,
531 asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4,
532 sizeof(asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4)
533 /sizeof(asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4[0]), /* 1 */
534 asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4, /* Same as above */
535 sizeof(asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4)
536 /sizeof(asn_DEF_Vanetza_Security_Ieee1609HeaderInfoExtensions_tags_4[0]), /* 1 */
537 {
538#if !defined(ASN_DISABLE_OER_SUPPORT)
539 0,
540#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
541#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
542 0,
543#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
544#if !defined(ASN_DISABLE_JER_SUPPORT)
545 0,
546#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
547 SEQUENCE_constraint
548 },
549 asn_MBR_Vanetza_Security_Ieee1609HeaderInfoExtensions_4,
550 2, /* Elements count */
551 &asn_SPC_Vanetza_Security_Ieee1609HeaderInfoExtensions_specs_4 /* Additional specs */
552};