2
3
4
5
6
10static const long asn_VAL_2_Vanetza_Security_certExtId_OperatingOrganization = 1;
11static const asn_ioc_cell_t asn_IOS_Vanetza_Security_SetCertExtensions_1_rows[] = {
12 {
"&id", aioc__value, &asn_DEF_Vanetza_Security_ExtId, &asn_VAL_2_Vanetza_Security_certExtId_OperatingOrganization },
13 {
"&App", aioc__type, &asn_DEF_Vanetza_Security_OperatingOrganizationId },
14 {
"&Issue", aioc__type, &asn_DEF_NULL },
15 {
"&Req", aioc__type, &asn_DEF_NULL }
17static const asn_ioc_set_t asn_IOS_Vanetza_Security_SetCertExtensions_1[] = {
18 { 1, 4, asn_IOS_Vanetza_Security_SetCertExtensions_1_rows }
21memb_Vanetza_Security_id_constraint_1(
const asn_TYPE_descriptor_t *td,
const void *sptr,
22 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
26 ASN__CTFAIL(app_key, td, sptr,
27 "%s: value not given (%s:%d)",
28 td->name, __FILE__, __LINE__);
32 value = *(
const long *)sptr;
34 if((value >= 0L && value <= 255L)) {
38 ASN__CTFAIL(app_key, td, sptr,
39 "%s: constraint failed (%s:%d)",
40 td->name, __FILE__, __LINE__);
45static asn_type_selector_result_t
46select_AppExtension_Vanetza_Security_content_type(
const asn_TYPE_descriptor_t *parent_type,
const void *parent_sptr) {
47 asn_type_selector_result_t result = {0, 0};
48 const asn_ioc_set_t *itable = asn_IOS_Vanetza_Security_SetCertExtensions_1;
49 size_t constraining_column = 0;
50 size_t for_column = 1;
51 size_t row, presence_index = 0;
52 const long *constraining_value = (
const long *)((
const char *)parent_sptr + offsetof(
struct Vanetza_Security_AppExtension, id));
54 for(row=0; row < itable->rows_count; row++) {
55 const asn_ioc_cell_t *constraining_cell = &itable->rows[row * itable->columns_count + constraining_column];
56 const asn_ioc_cell_t *type_cell = &itable->rows[row * itable->columns_count + for_column];
58 if(type_cell->cell_kind == aioc__undefined)
62 if(constraining_cell->type_descriptor->op->compare_struct(constraining_cell->type_descriptor, constraining_value, constraining_cell->value_sptr) == 0) {
63 result.type_descriptor = type_cell->type_descriptor;
64 result.presence_index = presence_index;
73memb_Vanetza_Security_content_constraint_1(
const asn_TYPE_descriptor_t *td,
const void *sptr,
74 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
77 ASN__CTFAIL(app_key, td, sptr,
78 "%s: value not given (%s:%d)",
79 td->name, __FILE__, __LINE__);
88 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
91#if !defined(ASN_DISABLE_OER_SUPPORT)
92static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_id_constr_2 CC_NOTUSED = {
96#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
97static asn_per_constraints_t asn_PER_memb_Vanetza_Security_id_constr_2 CC_NOTUSED = {
98 { APC_CONSTRAINED, 8, 8, 0, 255 } ,
99 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
103#if !defined(ASN_DISABLE_OER_SUPPORT)
104static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_content_constr_3 CC_NOTUSED = {
108#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
109static asn_per_constraints_t asn_PER_memb_Vanetza_Security_content_constr_3 CC_NOTUSED = {
110 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
111 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
115static asn_TYPE_member_t asn_MBR_Vanetza_Security_content_3[] = {
116 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_AppExtension__content, choice.OperatingOrganizationId),
117 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
119 &asn_DEF_Vanetza_Security_OperatingOrganizationId,
122#if !defined(ASN_DISABLE_OER_SUPPORT)
125#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
128#if !defined(ASN_DISABLE_JER_SUPPORT)
134 "OperatingOrganizationId"
137static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_content_tag2el_3[] = {
138 { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 0, 0, 0 }
140static asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_content_specs_3 = {
141 sizeof(
struct Vanetza_Security_AppExtension__content),
142 offsetof(
struct Vanetza_Security_AppExtension__content, _asn_ctx),
143 offsetof(
struct Vanetza_Security_AppExtension__content, present),
144 sizeof(((
struct Vanetza_Security_AppExtension__content *)0)->present),
145 asn_MAP_Vanetza_Security_content_tag2el_3,
151asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_content_3 = {
160#if !defined(ASN_DISABLE_OER_SUPPORT)
163#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
166#if !defined(ASN_DISABLE_JER_SUPPORT)
171 asn_MBR_Vanetza_Security_content_3,
173 &asn_SPC_Vanetza_Security_content_specs_3
176asn_TYPE_member_t asn_MBR_Vanetza_Security_AppExtension_1[] = {
177 { ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_AppExtension, id),
178 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
180 &asn_DEF_Vanetza_Security_ExtId,
183#if !defined(ASN_DISABLE_OER_SUPPORT)
184 &asn_OER_memb_Vanetza_Security_id_constr_2,
186#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
187 &asn_PER_memb_Vanetza_Security_id_constr_2,
189#if !defined(ASN_DISABLE_JER_SUPPORT)
192 memb_Vanetza_Security_id_constraint_1
197 { ATF_OPEN_TYPE | ATF_NOFLAGS, 0, offsetof(
struct Vanetza_Security_AppExtension, content),
198 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
200 &asn_DEF_Vanetza_Security_content_3,
201 select_AppExtension_Vanetza_Security_content_type,
203#if !defined(ASN_DISABLE_OER_SUPPORT)
204 &asn_OER_memb_Vanetza_Security_content_constr_3,
206#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
207 &asn_PER_memb_Vanetza_Security_content_constr_3,
209#if !defined(ASN_DISABLE_JER_SUPPORT)
212 memb_Vanetza_Security_content_constraint_1
218static const ber_tlv_tag_t asn_DEF_Vanetza_Security_AppExtension_tags_1[] = {
219 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
221static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_AppExtension_tag2el_1[] = {
222 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 },
223 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }
225asn_SEQUENCE_specifics_t asn_SPC_Vanetza_Security_AppExtension_specs_1 = {
226 sizeof(
struct Vanetza_Security_AppExtension),
227 offsetof(
struct Vanetza_Security_AppExtension, _asn_ctx),
228 asn_MAP_Vanetza_Security_AppExtension_tag2el_1,
233asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_AppExtension = {
237 asn_DEF_Vanetza_Security_AppExtension_tags_1,
238 sizeof(asn_DEF_Vanetza_Security_AppExtension_tags_1)
239 /
sizeof(asn_DEF_Vanetza_Security_AppExtension_tags_1[0]),
240 asn_DEF_Vanetza_Security_AppExtension_tags_1,
241 sizeof(asn_DEF_Vanetza_Security_AppExtension_tags_1)
242 /
sizeof(asn_DEF_Vanetza_Security_AppExtension_tags_1[0]),
244#if !defined(ASN_DISABLE_OER_SUPPORT)
247#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
250#if !defined(ASN_DISABLE_JER_SUPPORT)
255 asn_MBR_Vanetza_Security_AppExtension_1,
257 &asn_SPC_Vanetza_Security_AppExtension_specs_1