Vanetza
Loading...
Searching...
No Matches
ServiceSpecificPermissions.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
9
10static int
11memb_Vanetza_Security_opaque_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
14
15 if(!sptr) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
20 }
21
22
23 if(1 /* No applicable constraints whatsoever */) {
24 (void)st; /* Unused variable */
25 /* Nothing is here. See below */
26 }
27
28 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29}
30
31#if !defined(ASN_DISABLE_OER_SUPPORT)
32static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_opaque_constr_2 CC_NOTUSED = {
33 { 0, 0 },
34 -1 /* (SIZE(0..MAX)) */};
35#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
36#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
37static asn_per_constraints_t asn_PER_memb_Vanetza_Security_opaque_constr_2 CC_NOTUSED = {
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
40 0, 0 /* No PER value map */
41};
42#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
43#if !defined(ASN_DISABLE_OER_SUPPORT)
44asn_oer_constraints_t asn_OER_type_Vanetza_Security_ServiceSpecificPermissions_constr_1 CC_NOTUSED = {
45 { 0, 0 },
46 -1};
47#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
48#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
49asn_per_constraints_t asn_PER_type_Vanetza_Security_ServiceSpecificPermissions_constr_1 CC_NOTUSED = {
50 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
51 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
52 0, 0 /* No PER value map */
53};
54#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
55asn_TYPE_member_t asn_MBR_Vanetza_Security_ServiceSpecificPermissions_1[] = {
56 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_ServiceSpecificPermissions, choice.opaque),
57 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
58 -1, /* IMPLICIT tag at current level */
59 &asn_DEF_OCTET_STRING,
60 0,
61 {
62#if !defined(ASN_DISABLE_OER_SUPPORT)
63 &asn_OER_memb_Vanetza_Security_opaque_constr_2,
64#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
65#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
66 &asn_PER_memb_Vanetza_Security_opaque_constr_2,
67#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
68#if !defined(ASN_DISABLE_JER_SUPPORT)
69 0,
70#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
71 memb_Vanetza_Security_opaque_constraint_1
72 },
73 0, 0, /* No default value */
74 "opaque"
75 },
76 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_ServiceSpecificPermissions, choice.bitmapSsp),
77 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
78 -1, /* IMPLICIT tag at current level */
79 &asn_DEF_Vanetza_Security_BitmapSsp,
80 0,
81 {
82#if !defined(ASN_DISABLE_OER_SUPPORT)
83 0,
84#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
85#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
86 0,
87#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
88#if !defined(ASN_DISABLE_JER_SUPPORT)
89 0,
90#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
91 0
92 },
93 0, 0, /* No default value */
94 "bitmapSsp"
95 },
96};
97static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_ServiceSpecificPermissions_tag2el_1[] = {
98 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* opaque */
99 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* bitmapSsp */
100};
101asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_ServiceSpecificPermissions_specs_1 = {
102 sizeof(struct Vanetza_Security_ServiceSpecificPermissions),
103 offsetof(struct Vanetza_Security_ServiceSpecificPermissions, _asn_ctx),
104 offsetof(struct Vanetza_Security_ServiceSpecificPermissions, present),
105 sizeof(((struct Vanetza_Security_ServiceSpecificPermissions *)0)->present),
106 asn_MAP_Vanetza_Security_ServiceSpecificPermissions_tag2el_1,
107 2, /* Count of tags in the map */
108 0, 0,
109 1 /* Extensions start */
110};
111asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_ServiceSpecificPermissions = {
112 "ServiceSpecificPermissions",
113 "ServiceSpecificPermissions",
114 &asn_OP_CHOICE,
115 0, /* No effective tags (pointer) */
116 0, /* No effective tags (count) */
117 0, /* No tags (pointer) */
118 0, /* No tags (count) */
119 {
120#if !defined(ASN_DISABLE_OER_SUPPORT)
121 &asn_OER_type_Vanetza_Security_ServiceSpecificPermissions_constr_1,
122#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
123#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
124 &asn_PER_type_Vanetza_Security_ServiceSpecificPermissions_constr_1,
125#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
126#if !defined(ASN_DISABLE_JER_SUPPORT)
127 0,
128#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
129 CHOICE_constraint
130 },
131 asn_MBR_Vanetza_Security_ServiceSpecificPermissions_1,
132 2, /* Elements count */
133 &asn_SPC_Vanetza_Security_ServiceSpecificPermissions_specs_1 /* Additional specs */
134};