Vanetza
 
Loading...
Searching...
No Matches
ToBeSignedCertificate.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2"
4 * found in "asn1/IEEE1609dot2.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "ToBeSignedCertificate.h"
9
10#if !defined(ASN_DISABLE_OER_SUPPORT)
11static asn_oer_constraints_t asn_OER_type_ToBeSignedCertificate_constr_1 CC_NOTUSED = {
12 { 0, 0 },
13 -1};
14#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
15#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
16asn_per_constraints_t asn_PER_type_ToBeSignedCertificate_constr_1 CC_NOTUSED = {
17 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
18 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
19 0, 0 /* No PER value map */
20};
21#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
22asn_TYPE_member_t asn_MBR_ToBeSignedCertificate_1[] = {
23 { ATF_NOFLAGS, 0, offsetof(struct ToBeSignedCertificate, id),
24 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
25 +1, /* EXPLICIT tag at current level */
26 &asn_DEF_CertificateId,
27 0,
28 {
29#if !defined(ASN_DISABLE_OER_SUPPORT)
30 0,
31#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
32#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
33 0,
34#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
35 0
36 },
37 0, 0, /* No default value */
38 "id"
39 },
40 { ATF_NOFLAGS, 0, offsetof(struct ToBeSignedCertificate, cracaId),
41 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42 -1, /* IMPLICIT tag at current level */
43 &asn_DEF_HashedId3,
44 0,
45 {
46#if !defined(ASN_DISABLE_OER_SUPPORT)
47 0,
48#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
50 0,
51#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
52 0
53 },
54 0, 0, /* No default value */
55 "cracaId"
56 },
57 { ATF_NOFLAGS, 0, offsetof(struct ToBeSignedCertificate, crlSeries),
58 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
59 -1, /* IMPLICIT tag at current level */
60 &asn_DEF_CrlSeries,
61 0,
62 {
63#if !defined(ASN_DISABLE_OER_SUPPORT)
64 0,
65#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
66#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
67 0,
68#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
69 0
70 },
71 0, 0, /* No default value */
72 "crlSeries"
73 },
74 { ATF_NOFLAGS, 0, offsetof(struct ToBeSignedCertificate, validityPeriod),
75 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
76 -1, /* IMPLICIT tag at current level */
77 &asn_DEF_ValidityPeriod,
78 0,
79 {
80#if !defined(ASN_DISABLE_OER_SUPPORT)
81 0,
82#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
83#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
84 0,
85#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
86 0
87 },
88 0, 0, /* No default value */
89 "validityPeriod"
90 },
91 { ATF_POINTER, 7, offsetof(struct ToBeSignedCertificate, region),
92 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
93 +1, /* EXPLICIT tag at current level */
94 &asn_DEF_GeographicRegion,
95 0,
96 {
97#if !defined(ASN_DISABLE_OER_SUPPORT)
98 0,
99#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
100#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
101 0,
102#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
103 0
104 },
105 0, 0, /* No default value */
106 "region"
107 },
108 { ATF_POINTER, 6, offsetof(struct ToBeSignedCertificate, assuranceLevel),
109 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
110 -1, /* IMPLICIT tag at current level */
111 &asn_DEF_SubjectAssurance,
112 0,
113 {
114#if !defined(ASN_DISABLE_OER_SUPPORT)
115 0,
116#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
117#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
118 0,
119#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
120 0
121 },
122 0, 0, /* No default value */
123 "assuranceLevel"
124 },
125 { ATF_POINTER, 5, offsetof(struct ToBeSignedCertificate, appPermissions),
126 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
127 -1, /* IMPLICIT tag at current level */
128 &asn_DEF_SequenceOfPsidSsp,
129 0,
130 {
131#if !defined(ASN_DISABLE_OER_SUPPORT)
132 0,
133#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
134#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
135 0,
136#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
137 0
138 },
139 0, 0, /* No default value */
140 "appPermissions"
141 },
142 { ATF_POINTER, 4, offsetof(struct ToBeSignedCertificate, certIssuePermissions),
143 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
144 -1, /* IMPLICIT tag at current level */
145 &asn_DEF_SequenceOfPsidGroupPermissions,
146 0,
147 {
148#if !defined(ASN_DISABLE_OER_SUPPORT)
149 0,
150#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
151#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
152 0,
153#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
154 0
155 },
156 0, 0, /* No default value */
157 "certIssuePermissions"
158 },
159 { ATF_POINTER, 3, offsetof(struct ToBeSignedCertificate, certRequestPermissions),
160 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
161 -1, /* IMPLICIT tag at current level */
162 &asn_DEF_SequenceOfPsidGroupPermissions,
163 0,
164 {
165#if !defined(ASN_DISABLE_OER_SUPPORT)
166 0,
167#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
168#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
169 0,
170#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
171 0
172 },
173 0, 0, /* No default value */
174 "certRequestPermissions"
175 },
176 { ATF_POINTER, 2, offsetof(struct ToBeSignedCertificate, canRequestRollover),
177 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
178 -1, /* IMPLICIT tag at current level */
179 &asn_DEF_NULL,
180 0,
181 {
182#if !defined(ASN_DISABLE_OER_SUPPORT)
183 0,
184#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
185#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
186 0,
187#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
188 0
189 },
190 0, 0, /* No default value */
191 "canRequestRollover"
192 },
193 { ATF_POINTER, 1, offsetof(struct ToBeSignedCertificate, encryptionKey),
194 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
195 -1, /* IMPLICIT tag at current level */
196 &asn_DEF_PublicEncryptionKey,
197 0,
198 {
199#if !defined(ASN_DISABLE_OER_SUPPORT)
200 0,
201#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
202#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
203 0,
204#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
205 0
206 },
207 0, 0, /* No default value */
208 "encryptionKey"
209 },
210 { ATF_NOFLAGS, 0, offsetof(struct ToBeSignedCertificate, verifyKeyIndicator),
211 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
212 +1, /* EXPLICIT tag at current level */
213 &asn_DEF_VerificationKeyIndicator,
214 0,
215 {
216#if !defined(ASN_DISABLE_OER_SUPPORT)
217 0,
218#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
219#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
220 0,
221#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
222 0
223 },
224 0, 0, /* No default value */
225 "verifyKeyIndicator"
226 },
227};
228static const int asn_MAP_ToBeSignedCertificate_oms_1[] = { 4, 5, 6, 7, 8, 9, 10 };
229static const ber_tlv_tag_t asn_DEF_ToBeSignedCertificate_tags_1[] = {
230 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
231};
232static const asn_TYPE_tag2member_t asn_MAP_ToBeSignedCertificate_tag2el_1[] = {
233 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* id */
234 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* cracaId */
235 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* crlSeries */
236 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* validityPeriod */
237 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* region */
238 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 }, /* assuranceLevel */
239 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 }, /* appPermissions */
240 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 }, /* certIssuePermissions */
241 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 }, /* certRequestPermissions */
242 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 }, /* canRequestRollover */
243 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 }, /* encryptionKey */
244 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 } /* verifyKeyIndicator */
245};
246asn_SEQUENCE_specifics_t asn_SPC_ToBeSignedCertificate_specs_1 = {
247 sizeof(struct ToBeSignedCertificate),
248 offsetof(struct ToBeSignedCertificate, _asn_ctx),
249 asn_MAP_ToBeSignedCertificate_tag2el_1,
250 12, /* Count of tags in the map */
251 asn_MAP_ToBeSignedCertificate_oms_1, /* Optional members */
252 7, 0, /* Root/Additions */
253 12, /* First extension addition */
254};
255asn_TYPE_descriptor_t asn_DEF_ToBeSignedCertificate = {
256 "ToBeSignedCertificate",
257 "ToBeSignedCertificate",
258 &asn_OP_SEQUENCE,
259 asn_DEF_ToBeSignedCertificate_tags_1,
260 sizeof(asn_DEF_ToBeSignedCertificate_tags_1)
261 /sizeof(asn_DEF_ToBeSignedCertificate_tags_1[0]), /* 1 */
262 asn_DEF_ToBeSignedCertificate_tags_1, /* Same as above */
263 sizeof(asn_DEF_ToBeSignedCertificate_tags_1)
264 /sizeof(asn_DEF_ToBeSignedCertificate_tags_1[0]), /* 1 */
265 {
266#if !defined(ASN_DISABLE_OER_SUPPORT)
267 &asn_OER_type_ToBeSignedCertificate_constr_1,
268#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
269#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
270 &asn_PER_type_ToBeSignedCertificate_constr_1,
271#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
272 SEQUENCE_constraint
273 },
274 asn_MBR_ToBeSignedCertificate_1,
275 12, /* Elements count */
276 &asn_SPC_ToBeSignedCertificate_specs_1 /* Additional specs */
277};
278