Vanetza
Loading...
Searching...
No Matches
PsidGroupPermissions.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2"
4 * found in "Ieee1609Dot2.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
9
10static int asn_DFL_3_cmp_1(const void *sptr) {
11 const long *st = sptr;
12
13 if(!st) {
14 return -1; /* No value is not a default value */
15 }
16
17 /* Test default value 1 */
18 return (*st != 1);
19}
20static int asn_DFL_3_set_1(void **sptr) {
21 long *st = *sptr;
22
23 if(!st) {
24 st = (*sptr = CALLOC(1, sizeof(*st)));
25 if(!st) return -1;
26 }
27
28 /* Install default value 1 */
29 *st = 1;
30 return 0;
31}
32static int asn_DFL_4_cmp_0(const void *sptr) {
33 const long *st = sptr;
34
35 if(!st) {
36 return -1; /* No value is not a default value */
37 }
38
39 /* Test default value 0 */
40 return (*st != 0);
41}
42static int asn_DFL_4_set_0(void **sptr) {
43 long *st = *sptr;
44
45 if(!st) {
46 st = (*sptr = CALLOC(1, sizeof(*st)));
47 if(!st) return -1;
48 }
49
50 /* Install default value 0 */
51 *st = 0;
52 return 0;
53}
54asn_TYPE_member_t asn_MBR_Vanetza_Security_PsidGroupPermissions_1[] = {
55 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_PsidGroupPermissions, subjectPermissions),
56 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
57 +1, /* EXPLICIT tag at current level */
58 &asn_DEF_Vanetza_Security_SubjectPermissions,
59 0,
60 {
61#if !defined(ASN_DISABLE_OER_SUPPORT)
62 0,
63#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
64#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
65 0,
66#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67#if !defined(ASN_DISABLE_JER_SUPPORT)
68 0,
69#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
70 0
71 },
72 0, 0, /* No default value */
73 "subjectPermissions"
74 },
75 { ATF_POINTER, 3, offsetof(struct Vanetza_Security_PsidGroupPermissions, minChainLength),
76 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
77 -1, /* IMPLICIT tag at current level */
78 &asn_DEF_NativeInteger,
79 0,
80 {
81#if !defined(ASN_DISABLE_OER_SUPPORT)
82 0,
83#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
84#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
85 0,
86#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
87#if !defined(ASN_DISABLE_JER_SUPPORT)
88 0,
89#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
90 0
91 },
92 &asn_DFL_3_cmp_1, /* Compare DEFAULT 1 */
93 &asn_DFL_3_set_1, /* Set DEFAULT 1 */
94 "minChainLength"
95 },
96 { ATF_NOFLAGS, 2, offsetof(struct Vanetza_Security_PsidGroupPermissions, chainLengthRange),
97 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
98 -1, /* IMPLICIT tag at current level */
99 &asn_DEF_NativeInteger,
100 0,
101 {
102#if !defined(ASN_DISABLE_OER_SUPPORT)
103 0,
104#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
105#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
106 0,
107#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
108#if !defined(ASN_DISABLE_JER_SUPPORT)
109 0,
110#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
111 0
112 },
113 &asn_DFL_4_cmp_0, /* Compare DEFAULT 0 */
114 &asn_DFL_4_set_0, /* Set DEFAULT 0 */
115 "chainLengthRange"
116 },
117 { ATF_POINTER, 1, offsetof(struct Vanetza_Security_PsidGroupPermissions, eeType),
118 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
119 -1, /* IMPLICIT tag at current level */
120 &asn_DEF_Vanetza_Security_EndEntityType,
121 0,
122 {
123#if !defined(ASN_DISABLE_OER_SUPPORT)
124 0,
125#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
126#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
127 0,
128#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
129#if !defined(ASN_DISABLE_JER_SUPPORT)
130 0,
131#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
132 0
133 },
134 0, 0, /* No default value */
135 "eeType"
136 },
137};
138static const int asn_MAP_Vanetza_Security_PsidGroupPermissions_oms_1[] = { 1, 2, 3 };
139static const ber_tlv_tag_t asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1[] = {
140 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
141};
142static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_PsidGroupPermissions_tag2el_1[] = {
143 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* subjectPermissions */
144 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* minChainLength */
145 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* chainLengthRange */
146 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* eeType */
147};
148asn_SEQUENCE_specifics_t asn_SPC_Vanetza_Security_PsidGroupPermissions_specs_1 = {
149 sizeof(struct Vanetza_Security_PsidGroupPermissions),
150 offsetof(struct Vanetza_Security_PsidGroupPermissions, _asn_ctx),
151 asn_MAP_Vanetza_Security_PsidGroupPermissions_tag2el_1,
152 4, /* Count of tags in the map */
153 asn_MAP_Vanetza_Security_PsidGroupPermissions_oms_1, /* Optional members */
154 3, 0, /* Root/Additions */
155 -1, /* First extension addition */
156};
157asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_PsidGroupPermissions = {
158 "PsidGroupPermissions",
159 "PsidGroupPermissions",
160 &asn_OP_SEQUENCE,
161 asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1,
162 sizeof(asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1)
163 /sizeof(asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1[0]), /* 1 */
164 asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1, /* Same as above */
165 sizeof(asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1)
166 /sizeof(asn_DEF_Vanetza_Security_PsidGroupPermissions_tags_1[0]), /* 1 */
167 {
168#if !defined(ASN_DISABLE_OER_SUPPORT)
169 0,
170#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
171#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
172 0,
173#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
174#if !defined(ASN_DISABLE_JER_SUPPORT)
175 0,
176#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
177 SEQUENCE_constraint
178 },
179 asn_MBR_Vanetza_Security_PsidGroupPermissions_1,
180 4, /* Elements count */
181 &asn_SPC_Vanetza_Security_PsidGroupPermissions_specs_1 /* Additional specs */
182};