ITS
ValidityRestriction.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
3  * From ASN.1 module "Secured-Pdu-Descriptions"
4  * found in "Secured.asn"
5  */
6 
7 #include "ValidityRestriction.h"
8 
9 static asn_per_constraints_t asn_PER_type_validity_restriction_constr_3 GCC_NOTUSED = {
10  { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
11  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
12  0, 0 /* No PER value map */
13 };
15  { ATF_NOFLAGS, 0, offsetof(struct time_end, end_validity),
16  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
17  -1, /* IMPLICIT tag at current level */
19  0, /* Defer constraints checking to the member type */
20  0, /* No PER visible constraints */
21  0,
22  "end-validity"
23  },
24 };
26  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
27  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
28 };
30  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* end-validity */
31 };
33  sizeof(struct time_end),
34  offsetof(struct time_end, _asn_ctx),
36  1, /* Count of tags in the map */
37  0, 0, 0, /* Optional elements (not needed) */
38  -1, /* Start extensions */
39  -1 /* Stop extensions */
40 };
41 static /* Use -fall-defs-global to expose */
43  "time-end",
44  "time-end",
54  0, /* Use generic outmost tag fetcher */
57  /sizeof(asn_DEF_time_end_tags_4[0]) - 1, /* 1 */
58  asn_DEF_time_end_tags_4, /* Same as above */
60  /sizeof(asn_DEF_time_end_tags_4[0]), /* 2 */
61  0, /* No PER visible constraints */
63  1, /* Elements count */
64  &asn_SPC_time_end_specs_4 /* Additional specs */
65 };
66 
68  { ATF_NOFLAGS, 0, offsetof(struct time_start_and_end, start_validity),
69  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
70  -1, /* IMPLICIT tag at current level */
72  0, /* Defer constraints checking to the member type */
73  0, /* No PER visible constraints */
74  0,
75  "start-validity"
76  },
77  { ATF_NOFLAGS, 0, offsetof(struct time_start_and_end, end_validity),
78  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
79  -1, /* IMPLICIT tag at current level */
81  0, /* Defer constraints checking to the member type */
82  0, /* No PER visible constraints */
83  0,
84  "end-validity"
85  },
86 };
88  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
89  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
90 };
92  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* start-validity */
93  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* end-validity */
94 };
96  sizeof(struct time_start_and_end),
97  offsetof(struct time_start_and_end, _asn_ctx),
99  2, /* Count of tags in the map */
100  0, 0, 0, /* Optional elements (not needed) */
101  -1, /* Start extensions */
102  -1 /* Stop extensions */
103 };
104 static /* Use -fall-defs-global to expose */
106  "time-start-and-end",
107  "time-start-and-end",
117  0, /* Use generic outmost tag fetcher */
120  /sizeof(asn_DEF_time_start_and_end_tags_6[0]) - 1, /* 1 */
121  asn_DEF_time_start_and_end_tags_6, /* Same as above */
123  /sizeof(asn_DEF_time_start_and_end_tags_6[0]), /* 2 */
124  0, /* No PER visible constraints */
126  2, /* Elements count */
127  &asn_SPC_time_start_and_end_specs_6 /* Additional specs */
128 };
129 
131  { ATF_NOFLAGS, 0, offsetof(struct time_start_and_duration, start_validity),
132  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
133  -1, /* IMPLICIT tag at current level */
135  0, /* Defer constraints checking to the member type */
136  0, /* No PER visible constraints */
137  0,
138  "start-validity"
139  },
140  { ATF_NOFLAGS, 0, offsetof(struct time_start_and_duration, duration),
141  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
142  -1, /* IMPLICIT tag at current level */
144  0, /* Defer constraints checking to the member type */
145  0, /* No PER visible constraints */
146  0,
147  "duration"
148  },
149 };
151  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
152  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
153 };
155  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* start-validity */
156  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* duration */
157 };
159  sizeof(struct time_start_and_duration),
160  offsetof(struct time_start_and_duration, _asn_ctx),
162  2, /* Count of tags in the map */
163  0, 0, 0, /* Optional elements (not needed) */
164  -1, /* Start extensions */
165  -1 /* Stop extensions */
166 };
167 static /* Use -fall-defs-global to expose */
169  "time-start-and-duration",
170  "time-start-and-duration",
180  0, /* Use generic outmost tag fetcher */
183  /sizeof(asn_DEF_time_start_and_duration_tags_9[0]) - 1, /* 1 */
184  asn_DEF_time_start_and_duration_tags_9, /* Same as above */
186  /sizeof(asn_DEF_time_start_and_duration_tags_9[0]), /* 2 */
187  0, /* No PER visible constraints */
189  2, /* Elements count */
190  &asn_SPC_time_start_and_duration_specs_9 /* Additional specs */
191 };
192 
194  { ATF_NOFLAGS, 0, offsetof(struct region, geographic_region),
195  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
196  -1, /* IMPLICIT tag at current level */
198  0, /* Defer constraints checking to the member type */
199  0, /* No PER visible constraints */
200  0,
201  "geographic-region"
202  },
203 };
205  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
206  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
207 };
209  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* geographic-region */
210 };
212  sizeof(struct region),
213  offsetof(struct region, _asn_ctx),
215  1, /* Count of tags in the map */
216  0, 0, 0, /* Optional elements (not needed) */
217  -1, /* Start extensions */
218  -1 /* Stop extensions */
219 };
220 static /* Use -fall-defs-global to expose */
222  "region",
223  "region",
233  0, /* Use generic outmost tag fetcher */
235  sizeof(asn_DEF_region_tags_12)
236  /sizeof(asn_DEF_region_tags_12[0]) - 1, /* 1 */
237  asn_DEF_region_tags_12, /* Same as above */
238  sizeof(asn_DEF_region_tags_12)
239  /sizeof(asn_DEF_region_tags_12[0]), /* 2 */
240  0, /* No PER visible constraints */
242  1, /* Elements count */
243  &asn_SPC_region_specs_12 /* Additional specs */
244 };
245 
247  { ATF_NOFLAGS, 0, offsetof(struct unknown_validity_restriction, data),
248  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
249  -1, /* IMPLICIT tag at current level */
251  0, /* Defer constraints checking to the member type */
252  0, /* No PER visible constraints */
253  0,
254  "data"
255  },
256 };
258  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
259  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
260 };
262  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* data */
263 };
265  sizeof(struct unknown_validity_restriction),
266  offsetof(struct unknown_validity_restriction, _asn_ctx),
268  1, /* Count of tags in the map */
269  0, 0, 0, /* Optional elements (not needed) */
270  -1, /* Start extensions */
271  -1 /* Stop extensions */
272 };
273 static /* Use -fall-defs-global to expose */
275  "unknown-validity-restriction",
276  "unknown-validity-restriction",
286  0, /* Use generic outmost tag fetcher */
289  /sizeof(asn_DEF_unknown_validity_restriction_tags_14[0]) - 1, /* 1 */
293  0, /* No PER visible constraints */
295  1, /* Elements count */
296  &asn_SPC_unknown_validity_restriction_specs_14 /* Additional specs */
297 };
298 
300  { ATF_NOFLAGS, 0, offsetof(struct validity_restriction, choice.time_end),
301  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
302  0,
304  0, /* Defer constraints checking to the member type */
305  0, /* No PER visible constraints */
306  0,
307  "time-end"
308  },
309  { ATF_NOFLAGS, 0, offsetof(struct validity_restriction, choice.time_start_and_end),
310  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
311  0,
313  0, /* Defer constraints checking to the member type */
314  0, /* No PER visible constraints */
315  0,
316  "time-start-and-end"
317  },
318  { ATF_NOFLAGS, 0, offsetof(struct validity_restriction, choice.time_start_and_duration),
319  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
320  0,
322  0, /* Defer constraints checking to the member type */
323  0, /* No PER visible constraints */
324  0,
325  "time-start-and-duration"
326  },
327  { ATF_NOFLAGS, 0, offsetof(struct validity_restriction, choice.region),
328  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
329  0,
331  0, /* Defer constraints checking to the member type */
332  0, /* No PER visible constraints */
333  0,
334  "region"
335  },
336  { ATF_NOFLAGS, 0, offsetof(struct validity_restriction, choice.unknown_validity_restriction),
337  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
338  0,
340  0, /* Defer constraints checking to the member type */
341  0, /* No PER visible constraints */
342  0,
343  "unknown-validity-restriction"
344  },
345 };
347  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* time-end */
348  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* time-start-and-end */
349  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* time-start-and-duration */
350  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* region */
351  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* unknown-validity-restriction */
352 };
354  sizeof(struct validity_restriction),
355  offsetof(struct validity_restriction, _asn_ctx),
356  offsetof(struct validity_restriction, present),
357  sizeof(((struct validity_restriction *)0)->present),
359  5, /* Count of tags in the map */
360  0,
361  -1 /* Extensions start */
362 };
363 static /* Use -fall-defs-global to expose */
365  "validity-restriction",
366  "validity-restriction",
367  CHOICE_free,
368  CHOICE_print,
377  0, /* No effective tags (pointer) */
378  0, /* No effective tags (count) */
379  0, /* No tags (pointer) */
380  0, /* No tags (count) */
381  &asn_PER_type_validity_restriction_constr_3,
383  5, /* Elements count */
384  &asn_SPC_validity_restriction_specs_3 /* Additional specs */
385 };
386 
388  { ATF_NOFLAGS, 0, offsetof(struct ValidityRestriction, type),
389  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
390  -1, /* IMPLICIT tag at current level */
392  0, /* Defer constraints checking to the member type */
393  0, /* No PER visible constraints */
394  0,
395  "type"
396  },
397  { ATF_NOFLAGS, 0, offsetof(struct ValidityRestriction, validity_restriction),
398  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
399  +1, /* EXPLICIT tag at current level */
401  0, /* Defer constraints checking to the member type */
402  0, /* No PER visible constraints */
403  0,
404  "validity-restriction"
405  },
406 };
408  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
409 };
411  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type */
412  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* validity-restriction */
413 };
415  sizeof(struct ValidityRestriction),
418  2, /* Count of tags in the map */
419  0, 0, 0, /* Optional elements (not needed) */
420  -1, /* Start extensions */
421  -1 /* Stop extensions */
422 };
424  "ValidityRestriction",
425  "ValidityRestriction",
435  0, /* Use generic outmost tag fetcher */
438  /sizeof(asn_DEF_ValidityRestriction_tags_1[0]), /* 1 */
439  asn_DEF_ValidityRestriction_tags_1, /* Same as above */
441  /sizeof(asn_DEF_ValidityRestriction_tags_1[0]), /* 1 */
442  0, /* No PER visible constraints */
444  2, /* Elements count */
445  &asn_SPC_ValidityRestriction_specs_1 /* Additional specs */
446 };
447 
asn_TYPE_descriptor_t asn_DEF_ValidityRestrictionType
static asn_TYPE_member_t asn_MBR_validity_restriction_3[]
#define offsetof(s, m)
Definition: asn_system.h:115
static ber_tlv_tag_t asn_DEF_time_end_tags_4[]
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
static ber_tlv_tag_t asn_DEF_region_tags_12[]
ber_type_decoder_f SEQUENCE_decode_ber
asn_TYPE_descriptor_t asn_DEF_Time32
Definition: Time32.c:109
asn_TYPE_descriptor_t asn_DEF_Duration
Definition: Duration.c:118
static asn_TYPE_descriptor_t asn_DEF_region_12
der_type_encoder_f SEQUENCE_encode_der
asn_constr_check_f CHOICE_constraint
Definition: constr_CHOICE.h:44
static asn_SEQUENCE_specifics_t asn_SPC_ValidityRestriction_specs_1
static ber_tlv_tag_t asn_DEF_time_start_and_end_tags_6[]
static asn_TYPE_tag2member_t asn_MAP_time_start_and_end_tag2el_6[]
static ber_tlv_tag_t asn_DEF_unknown_validity_restriction_tags_14[]
ber_type_decoder_f CHOICE_decode_ber
Definition: constr_CHOICE.h:45
asn_struct_print_f SEQUENCE_print
per_type_decoder_f SEQUENCE_decode_uper
per_type_encoder_f SEQUENCE_encode_uper
static asn_TYPE_member_t asn_MBR_time_start_and_duration_9[]
asn_constr_check_f SEQUENCE_constraint
asn_TYPE_descriptor_t asn_DEF_Opaque
Definition: Opaque.c:45
static asn_TYPE_member_t asn_MBR_ValidityRestriction_1[]
static asn_per_constraints_t asn_PER_type_validity_restriction_constr_3 GCC_NOTUSED
xer_type_decoder_f SEQUENCE_decode_xer
static ber_tlv_tag_t asn_DEF_ValidityRestriction_tags_1[]
der_type_encoder_f CHOICE_encode_der
Definition: constr_CHOICE.h:46
static asn_SEQUENCE_specifics_t asn_SPC_region_specs_12
static asn_TYPE_descriptor_t asn_DEF_time_start_and_duration_9
static asn_SEQUENCE_specifics_t asn_SPC_time_start_and_duration_specs_9
static asn_TYPE_tag2member_t asn_MAP_ValidityRestriction_tag2el_1[]
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
asn_struct_free_f SEQUENCE_free
static asn_SEQUENCE_specifics_t asn_SPC_unknown_validity_restriction_specs_14
static asn_TYPE_member_t asn_MBR_unknown_validity_restriction_14[]
static asn_SEQUENCE_specifics_t asn_SPC_time_end_specs_4
static ber_tlv_tag_t asn_DEF_time_start_and_duration_tags_9[]
static asn_TYPE_tag2member_t asn_MAP_unknown_validity_restriction_tag2el_14[]
static asn_TYPE_member_t asn_MBR_time_end_4[]
asn_TYPE_descriptor_t asn_DEF_ValidityRestriction
static asn_TYPE_tag2member_t asn_MAP_region_tag2el_12[]
static asn_TYPE_tag2member_t asn_MAP_validity_restriction_tag2el_3[]
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
asn_struct_ctx_t _asn_ctx
asn_TYPE_descriptor_t asn_DEF_GeographicRegion
static asn_TYPE_member_t asn_MBR_region_12[]
static asn_SEQUENCE_specifics_t asn_SPC_time_start_and_end_specs_6
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
static asn_TYPE_descriptor_t asn_DEF_validity_restriction_3
static asn_TYPE_tag2member_t asn_MAP_time_end_tag2el_4[]
static asn_CHOICE_specifics_t asn_SPC_validity_restriction_specs_3
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
asn_outmost_tag_f CHOICE_outmost_tag
Definition: constr_CHOICE.h:51
xer_type_encoder_f SEQUENCE_encode_xer
static asn_TYPE_tag2member_t asn_MAP_time_start_and_duration_tag2el_9[]
static asn_TYPE_descriptor_t asn_DEF_time_start_and_end_6
static asn_TYPE_member_t asn_MBR_time_start_and_end_6[]
static asn_TYPE_descriptor_t asn_DEF_time_end_4
static asn_TYPE_descriptor_t asn_DEF_unknown_validity_restriction_14
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42