blob: 69a7dedbee3d1c0456a37cc17bb9213bfbf26fbd [file] [log] [blame]
vlm79b08d52004-07-01 00:52:50 +00001
2/*** <<< DEPS [T1] >>> ***/
3
4/* Dependencies for T1 */
5#include <INTEGER.h>
6
7
8/*
9 * Method of determining the components presence
10 */
11enum T1_PR_e {
12 T1_PR_i, /* Member i is present */
13};
14#include <constr_SET.h>
15
16extern asn1_TYPE_descriptor_t asn1_DEF_T1;
17
18/*** <<< TYPE-DECLS [T1] >>> ***/
19
20
21typedef struct T1 {
22 INTEGER_t i;
23 /*
24 * This type is extensible,
25 * possible extensions are below.
26 */
27
28 /* Presence bitmask: ASN_SET_ISPRESENT(pT1, T1_PR_x) */
29 unsigned int _presence_map
30 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
31
32 /* Context for parsing across buffer boundaries */
33 ber_dec_ctx_t _ber_dec_ctx;
34} T1_t;
35
36/*** <<< STAT-DEFS [T1] >>> ***/
37
38#include <constr_SET.h>
39
40static asn1_SET_element_t asn1_DEF_T1_elements[] = {
41 { offsetof(struct T1, i), 0,
42 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
43 0,
44 (void *)&asn1_DEF_INTEGER,
45 "i"
46 },
47};
48static ber_tlv_tag_t asn1_DEF_T1_tags[] = {
49 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
50};
51static asn1_TYPE_tag2member_t asn1_DEF_T1_tag2el[] = {
52 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 14 */
53};
54static uint8_t asn1_DEF_T1_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
55 (1 << 7)
56};
57static asn1_SET_specifics_t asn1_DEF_T1_specs = {
58 sizeof(struct T1),
59 offsetof(struct T1, _ber_dec_ctx),
60 offsetof(struct T1, _presence_map),
61 asn1_DEF_T1_elements,
62 1, /* Elements count */
63 asn1_DEF_T1_tag2el,
64 1, /* Count of tags in the map */
65 1, /* Whether extensible */
66 (unsigned int *)asn1_DEF_T1_mmap /* Mandatory elements map */
67};
68asn1_TYPE_descriptor_t asn1_DEF_T1 = {
69 "T1",
70 SET_constraint,
71 SET_decode_ber,
72 SET_encode_der,
73 SET_print,
74 SET_free,
75 0, /* Use generic outmost tag fetcher */
76 asn1_DEF_T1_tags,
77 sizeof(asn1_DEF_T1_tags)
78 /sizeof(asn1_DEF_T1_tags[0]),
79 1, /* Tags to skip */
80 1, /* Whether CONSTRUCTED */
81 &asn1_DEF_T1_specs /* Additional specs */
82};
83
84
85/*** <<< DEPS [T2] >>> ***/
86
87/* Dependencies for T2 */
88#include <INTEGER.h>
89
90
91/*
92 * Method of determining the components presence
93 */
94enum T2_PR_e {
95 T2_PR_i, /* Member i is present */
96};
97#include <constr_SET.h>
98
99extern asn1_TYPE_descriptor_t asn1_DEF_T2;
100
101/*** <<< TYPE-DECLS [T2] >>> ***/
102
103
104typedef struct T2 {
105 INTEGER_t i;
106 /*
107 * This type is extensible,
108 * possible extensions are below.
109 */
110
111 /* Presence bitmask: ASN_SET_ISPRESENT(pT2, T2_PR_x) */
112 unsigned int _presence_map
113 [((1+(8*sizeof(unsigned int))-1)/(8*sizeof(unsigned int)))];
114
115 /* Context for parsing across buffer boundaries */
116 ber_dec_ctx_t _ber_dec_ctx;
117} T2_t;
118
119/*** <<< STAT-DEFS [T2] >>> ***/
120
121#include <constr_SET.h>
122
123static asn1_SET_element_t asn1_DEF_T2_elements[] = {
124 { offsetof(struct T2, i), 0,
125 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
126 0,
127 (void *)&asn1_DEF_INTEGER,
128 "i"
129 },
130};
131static ber_tlv_tag_t asn1_DEF_T2_tags[] = {
132 (ASN_TAG_CLASS_UNIVERSAL | (17 << 2))
133};
134static asn1_TYPE_tag2member_t asn1_DEF_T2_tag2el[] = {
135 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 15 */
136};
137static uint8_t asn1_DEF_T2_mmap[(1 + (8 * sizeof(unsigned int)) - 1) / 8] = {
138 (1 << 7)
139};
140static asn1_SET_specifics_t asn1_DEF_T2_specs = {
141 sizeof(struct T2),
142 offsetof(struct T2, _ber_dec_ctx),
143 offsetof(struct T2, _presence_map),
144 asn1_DEF_T2_elements,
145 1, /* Elements count */
146 asn1_DEF_T2_tag2el,
147 1, /* Count of tags in the map */
148 1, /* Whether extensible */
149 (unsigned int *)asn1_DEF_T2_mmap /* Mandatory elements map */
150};
151asn1_TYPE_descriptor_t asn1_DEF_T2 = {
152 "T2",
153 SET_constraint,
154 SET_decode_ber,
155 SET_encode_der,
156 SET_print,
157 SET_free,
158 0, /* Use generic outmost tag fetcher */
159 asn1_DEF_T2_tags,
160 sizeof(asn1_DEF_T2_tags)
161 /sizeof(asn1_DEF_T2_tags[0]),
162 1, /* Tags to skip */
163 1, /* Whether CONSTRUCTED */
164 &asn1_DEF_T2_specs /* Additional specs */
165};
166
167
168/*** <<< DEPS [T3] >>> ***/
169
170/* Dependencies for T3 */
171#include <INTEGER.h>
172
173extern asn1_TYPE_descriptor_t asn1_DEF_T3;
174
175/*** <<< TYPE-DECLS [T3] >>> ***/
176
177
178typedef struct T3 {
179 enum {
180 T3_PR_NOTHING, /* No components present */
181 T3_PR_i,
182 } present;
183 union {
184 INTEGER_t i;
185 /*
186 * This type is extensible,
187 * possible extensions are below.
188 */
189 } choice;
190
191 /* Context for parsing across buffer boundaries */
192 ber_dec_ctx_t _ber_dec_ctx;
193} T3_t;
194
195/*** <<< STAT-DEFS [T3] >>> ***/
196
197#include <constr_CHOICE.h>
198
199static asn1_CHOICE_element_t asn1_DEF_T3_elements[] = {
200 { offsetof(struct T3, choice.i), 0,
201 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
202 0,
203 (void *)&asn1_DEF_INTEGER,
204 "i"
205 },
206};
207static ber_tlv_tag_t asn1_DEF_T3_tags[] = {
208
209};
210static asn1_TYPE_tag2member_t asn1_DEF_T3_tag2el[] = {
211 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 16 */
212};
213static asn1_CHOICE_specifics_t asn1_DEF_T3_specs = {
214 sizeof(struct T3),
215 offsetof(struct T3, _ber_dec_ctx),
216 offsetof(struct T3, present),
217 sizeof(((struct T3 *)0)->present),
218 asn1_DEF_T3_elements,
219 1, /* Elements count */
220 asn1_DEF_T3_tag2el,
221 1, /* Count of tags in the map */
222 1 /* Whether extensible */
223};
224asn1_TYPE_descriptor_t asn1_DEF_T3 = {
225 "T3",
226 CHOICE_constraint,
227 CHOICE_decode_ber,
228 CHOICE_encode_der,
229 CHOICE_print,
230 CHOICE_free,
231 CHOICE_outmost_tag,
232 asn1_DEF_T3_tags,
233 sizeof(asn1_DEF_T3_tags)
234 /sizeof(asn1_DEF_T3_tags[0]),
235 0, /* Tags to skip */
236 1, /* Whether CONSTRUCTED */
237 &asn1_DEF_T3_specs /* Additional specs */
238};
239
240
241/*** <<< DEPS [T4] >>> ***/
242
243/* Dependencies for T4 */
244#include <INTEGER.h>
245
246extern asn1_TYPE_descriptor_t asn1_DEF_T4;
247
248/*** <<< TYPE-DECLS [T4] >>> ***/
249
250
251typedef struct T4 {
252 enum {
253 T4_PR_NOTHING, /* No components present */
254 T4_PR_i,
255 } present;
256 union {
257 INTEGER_t i;
258 /*
259 * This type is extensible,
260 * possible extensions are below.
261 */
262 } choice;
263
264 /* Context for parsing across buffer boundaries */
265 ber_dec_ctx_t _ber_dec_ctx;
266} T4_t;
267
268/*** <<< STAT-DEFS [T4] >>> ***/
269
270#include <constr_CHOICE.h>
271
272static asn1_CHOICE_element_t asn1_DEF_T4_elements[] = {
273 { offsetof(struct T4, choice.i), 0,
274 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
275 0,
276 (void *)&asn1_DEF_INTEGER,
277 "i"
278 },
279};
280static ber_tlv_tag_t asn1_DEF_T4_tags[] = {
281
282};
283static asn1_TYPE_tag2member_t asn1_DEF_T4_tag2el[] = {
284 { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* i at 17 */
285};
286static asn1_CHOICE_specifics_t asn1_DEF_T4_specs = {
287 sizeof(struct T4),
288 offsetof(struct T4, _ber_dec_ctx),
289 offsetof(struct T4, present),
290 sizeof(((struct T4 *)0)->present),
291 asn1_DEF_T4_elements,
292 1, /* Elements count */
293 asn1_DEF_T4_tag2el,
294 1, /* Count of tags in the map */
295 1 /* Whether extensible */
296};
297asn1_TYPE_descriptor_t asn1_DEF_T4 = {
298 "T4",
299 CHOICE_constraint,
300 CHOICE_decode_ber,
301 CHOICE_encode_der,
302 CHOICE_print,
303 CHOICE_free,
304 CHOICE_outmost_tag,
305 asn1_DEF_T4_tags,
306 sizeof(asn1_DEF_T4_tags)
307 /sizeof(asn1_DEF_T4_tags[0]),
308 0, /* Tags to skip */
309 1, /* Whether CONSTRUCTED */
310 &asn1_DEF_T4_specs /* Additional specs */
311};
312