2
3
4
5
6
11memb_Vanetza_Security_flags_constraint_1(
const asn_TYPE_descriptor_t *td,
const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
13 const BIT_STRING_t *st = (
const BIT_STRING_t *)sptr;
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
25 size = 8 * st->size - (st->bits_unused & 0x07);
34 ASN__CTFAIL(app_key, td, sptr,
35 "%s: constraint failed (%s:%d)",
36 td->name, __FILE__, __LINE__);
41#if !defined(ASN_DISABLE_OER_SUPPORT)
42static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_flags_constr_15 CC_NOTUSED = {
46#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
47static asn_per_constraints_t asn_PER_memb_Vanetza_Security_flags_constr_15 CC_NOTUSED = {
48 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
49 { APC_CONSTRAINED, 0, 0, 8, 8 } ,
53#if !defined(ASN_DISABLE_JER_SUPPORT)
54static asn_jer_constraints_t asn_JER_memb_Vanetza_Security_flags_constr_15 CC_NOTUSED = {
57#if !defined(ASN_DISABLE_OER_SUPPORT)
58asn_oer_constraints_t asn_OER_type_Vanetza_Security_ToBeSignedCertificate_constr_1 CC_NOTUSED = {
62#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
63asn_per_constraints_t asn_PER_type_Vanetza_Security_ToBeSignedCertificate_constr_1 CC_NOTUSED = {
64 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
65 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
69asn_TYPE_member_t asn_MBR_Vanetza_Security_ToBeSignedCertificate_1[] = {
70 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, id),
71 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
73 &asn_DEF_Vanetza_Security_CertificateId,
76#if !defined(ASN_DISABLE_OER_SUPPORT)
79#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
82#if !defined(ASN_DISABLE_JER_SUPPORT)
90 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, cracaId),
91 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
93 &asn_DEF_Vanetza_Security_HashedId3,
96#if !defined(ASN_DISABLE_OER_SUPPORT)
99#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
102#if !defined(ASN_DISABLE_JER_SUPPORT)
110 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, crlSeries),
111 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
113 &asn_DEF_Vanetza_Security_CrlSeries,
116#if !defined(ASN_DISABLE_OER_SUPPORT)
119#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
122#if !defined(ASN_DISABLE_JER_SUPPORT)
130 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, validityPeriod),
131 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
133 &asn_DEF_Vanetza_Security_ValidityPeriod,
136#if !defined(ASN_DISABLE_OER_SUPPORT)
139#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
142#if !defined(ASN_DISABLE_JER_SUPPORT)
150 { ATF_POINTER, 7, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, region),
151 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
153 &asn_DEF_Vanetza_Security_GeographicRegion,
156#if !defined(ASN_DISABLE_OER_SUPPORT)
159#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
162#if !defined(ASN_DISABLE_JER_SUPPORT)
170 { ATF_POINTER, 6, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, assuranceLevel),
171 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
173 &asn_DEF_Vanetza_Security_SubjectAssurance,
176#if !defined(ASN_DISABLE_OER_SUPPORT)
179#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
182#if !defined(ASN_DISABLE_JER_SUPPORT)
190 { ATF_POINTER, 5, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, appPermissions),
191 (ASN_TAG_CLASS_CONTEXT | (6 << 2)),
193 &asn_DEF_Vanetza_Security_SequenceOfPsidSsp,
196#if !defined(ASN_DISABLE_OER_SUPPORT)
199#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
202#if !defined(ASN_DISABLE_JER_SUPPORT)
210 { ATF_POINTER, 4, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, certIssuePermissions),
211 (ASN_TAG_CLASS_CONTEXT | (7 << 2)),
213 &asn_DEF_Vanetza_Security_SequenceOfPsidGroupPermissions,
216#if !defined(ASN_DISABLE_OER_SUPPORT)
219#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
222#if !defined(ASN_DISABLE_JER_SUPPORT)
228 "certIssuePermissions"
230 { ATF_POINTER, 3, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, certRequestPermissions),
231 (ASN_TAG_CLASS_CONTEXT | (8 << 2)),
233 &asn_DEF_Vanetza_Security_SequenceOfPsidGroupPermissions,
236#if !defined(ASN_DISABLE_OER_SUPPORT)
239#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
242#if !defined(ASN_DISABLE_JER_SUPPORT)
248 "certRequestPermissions"
250 { ATF_POINTER, 2, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, canRequestRollover),
251 (ASN_TAG_CLASS_CONTEXT | (9 << 2)),
256#if !defined(ASN_DISABLE_OER_SUPPORT)
259#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
262#if !defined(ASN_DISABLE_JER_SUPPORT)
270 { ATF_POINTER, 1, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, encryptionKey),
271 (ASN_TAG_CLASS_CONTEXT | (10 << 2)),
273 &asn_DEF_Vanetza_Security_PublicEncryptionKey,
276#if !defined(ASN_DISABLE_OER_SUPPORT)
279#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
282#if !defined(ASN_DISABLE_JER_SUPPORT)
290 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, verifyKeyIndicator),
291 (ASN_TAG_CLASS_CONTEXT | (11 << 2)),
293 &asn_DEF_Vanetza_Security_VerificationKeyIndicator,
296#if !defined(ASN_DISABLE_OER_SUPPORT)
299#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
302#if !defined(ASN_DISABLE_JER_SUPPORT)
310 { ATF_POINTER, 6, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, flags),
311 (ASN_TAG_CLASS_CONTEXT | (12 << 2)),
316#if !defined(ASN_DISABLE_OER_SUPPORT)
317 &asn_OER_memb_Vanetza_Security_flags_constr_15,
319#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
320 &asn_PER_memb_Vanetza_Security_flags_constr_15,
322#if !defined(ASN_DISABLE_JER_SUPPORT)
323 &asn_JER_memb_Vanetza_Security_flags_constr_15,
325 memb_Vanetza_Security_flags_constraint_1
330 { ATF_POINTER, 5, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, appExtensions),
331 (ASN_TAG_CLASS_CONTEXT | (13 << 2)),
333 &asn_DEF_Vanetza_Security_SequenceOfAppExtensions,
336#if !defined(ASN_DISABLE_OER_SUPPORT)
339#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
342#if !defined(ASN_DISABLE_JER_SUPPORT)
350 { ATF_POINTER, 4, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, certIssueExtensions),
351 (ASN_TAG_CLASS_CONTEXT | (14 << 2)),
353 &asn_DEF_Vanetza_Security_SequenceOfCertIssueExtensions,
356#if !defined(ASN_DISABLE_OER_SUPPORT)
359#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
362#if !defined(ASN_DISABLE_JER_SUPPORT)
368 "certIssueExtensions"
370 { ATF_POINTER, 3, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, certRequestExtension),
371 (ASN_TAG_CLASS_CONTEXT | (15 << 2)),
373 &asn_DEF_Vanetza_Security_SequenceOfCertRequestExtensions,
376#if !defined(ASN_DISABLE_OER_SUPPORT)
379#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
382#if !defined(ASN_DISABLE_JER_SUPPORT)
388 "certRequestExtension"
390 { ATF_POINTER, 2, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, altVerificationKey),
391 (ASN_TAG_CLASS_CONTEXT | (16 << 2)),
393 &asn_DEF_Vanetza_Security_PublicVerificationKey,
396#if !defined(ASN_DISABLE_OER_SUPPORT)
399#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
402#if !defined(ASN_DISABLE_JER_SUPPORT)
410 { ATF_POINTER, 1, offsetof(
struct Vanetza_Security_ToBeSignedCertificate, altSignatureValue),
411 (ASN_TAG_CLASS_CONTEXT | (17 << 2)),
413 &asn_DEF_Vanetza_Security_Signature,
416#if !defined(ASN_DISABLE_OER_SUPPORT)
419#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
422#if !defined(ASN_DISABLE_JER_SUPPORT)
431static const int asn_MAP_Vanetza_Security_ToBeSignedCertificate_oms_1[] = { 4, 5, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17 };
432static const ber_tlv_tag_t asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1[] = {
433 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
435static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_ToBeSignedCertificate_tag2el_1[] = {
436 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 },
437 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 },
438 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 },
439 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 },
440 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 },
441 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 },
442 { (ASN_TAG_CLASS_CONTEXT | (6 << 2)), 6, 0, 0 },
443 { (ASN_TAG_CLASS_CONTEXT | (7 << 2)), 7, 0, 0 },
444 { (ASN_TAG_CLASS_CONTEXT | (8 << 2)), 8, 0, 0 },
445 { (ASN_TAG_CLASS_CONTEXT | (9 << 2)), 9, 0, 0 },
446 { (ASN_TAG_CLASS_CONTEXT | (10 << 2)), 10, 0, 0 },
447 { (ASN_TAG_CLASS_CONTEXT | (11 << 2)), 11, 0, 0 },
448 { (ASN_TAG_CLASS_CONTEXT | (12 << 2)), 12, 0, 0 },
449 { (ASN_TAG_CLASS_CONTEXT | (13 << 2)), 13, 0, 0 },
450 { (ASN_TAG_CLASS_CONTEXT | (14 << 2)), 14, 0, 0 },
451 { (ASN_TAG_CLASS_CONTEXT | (15 << 2)), 15, 0, 0 },
452 { (ASN_TAG_CLASS_CONTEXT | (16 << 2)), 16, 0, 0 },
453 { (ASN_TAG_CLASS_CONTEXT | (17 << 2)), 17, 0, 0 }
455asn_SEQUENCE_specifics_t asn_SPC_Vanetza_Security_ToBeSignedCertificate_specs_1 = {
456 sizeof(
struct Vanetza_Security_ToBeSignedCertificate),
457 offsetof(
struct Vanetza_Security_ToBeSignedCertificate, _asn_ctx),
458 asn_MAP_Vanetza_Security_ToBeSignedCertificate_tag2el_1,
460 asn_MAP_Vanetza_Security_ToBeSignedCertificate_oms_1,
464asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ToBeSignedCertificate = {
465 "ToBeSignedCertificate",
466 "ToBeSignedCertificate",
468 asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1,
469 sizeof(asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1)
470 /
sizeof(asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1[0]),
471 asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1,
472 sizeof(asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1)
473 /
sizeof(asn_DEF_Vanetza_Security_ToBeSignedCertificate_tags_1[0]),
475#if !defined(ASN_DISABLE_OER_SUPPORT)
476 &asn_OER_type_Vanetza_Security_ToBeSignedCertificate_constr_1,
478#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
479 &asn_PER_type_Vanetza_Security_ToBeSignedCertificate_constr_1,
481#if !defined(ASN_DISABLE_JER_SUPPORT)
486 asn_MBR_Vanetza_Security_ToBeSignedCertificate_1,
488 &asn_SPC_Vanetza_Security_ToBeSignedCertificate_specs_1