/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "PEDefinitions" * found in "../../../asn1/PEDefinitions.asn" * `asn1c -fcompound-names -no-gen-example` */ #include "PE-CDMAParameter.h" static int memb_authenticationKey_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } size = st->size; if((size == 8)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_ssd_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } size = st->size; if((size == 16)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_hrpdAccessAuthenticationData_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } size = st->size; if((size >= 2 && size <= 32)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_simpleIPAuthenticationData_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } size = st->size; if((size >= 3 && size <= 483)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static int memb_mobileIPAuthenticationData_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr, asn_app_constraint_failed_f *ctfailcb, void *app_key) { const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr; size_t size; if(!sptr) { ASN__CTFAIL(app_key, td, sptr, "%s: value not given (%s:%d)", td->name, __FILE__, __LINE__); return -1; } size = st->size; if((size >= 5 && size <= 957)) { /* Constraint check succeeded */ return 0; } else { ASN__CTFAIL(app_key, td, sptr, "%s: constraint failed (%s:%d)", td->name, __FILE__, __LINE__); return -1; } } static asn_oer_constraints_t asn_OER_memb_authenticationKey_constr_3 CC_NOTUSED = { { 0, 0 }, 8 /* (SIZE(8..8)) */}; static asn_per_constraints_t asn_PER_memb_authenticationKey_constr_3 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 8, 8 } /* (SIZE(8..8)) */, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_ssd_constr_4 CC_NOTUSED = { { 0, 0 }, 16 /* (SIZE(16..16)) */}; static asn_per_constraints_t asn_PER_memb_ssd_constr_4 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 0, 0, 16, 16 } /* (SIZE(16..16)) */, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_hrpdAccessAuthenticationData_constr_5 CC_NOTUSED = { { 0, 0 }, -1 /* (SIZE(2..32)) */}; static asn_per_constraints_t asn_PER_memb_hrpdAccessAuthenticationData_constr_5 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 5, 5, 2, 32 } /* (SIZE(2..32)) */, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_simpleIPAuthenticationData_constr_6 CC_NOTUSED = { { 0, 0 }, -1 /* (SIZE(3..483)) */}; static asn_per_constraints_t asn_PER_memb_simpleIPAuthenticationData_constr_6 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 9, 9, 3, 483 } /* (SIZE(3..483)) */, 0, 0 /* No PER value map */ }; static asn_oer_constraints_t asn_OER_memb_mobileIPAuthenticationData_constr_7 CC_NOTUSED = { { 0, 0 }, -1 /* (SIZE(5..957)) */}; static asn_per_constraints_t asn_PER_memb_mobileIPAuthenticationData_constr_7 CC_NOTUSED = { { APC_UNCONSTRAINED, -1, -1, 0, 0 }, { APC_CONSTRAINED, 10, 10, 5, 957 } /* (SIZE(5..957)) */, 0, 0 /* No PER value map */ }; asn_TYPE_member_t asn_MBR_PE_CDMAParameter_1[] = { { ATF_NOFLAGS, 0, offsetof(struct PE_CDMAParameter, cdma_header), (ASN_TAG_CLASS_CONTEXT | (0 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_PEHeader, 0, { 0, 0, 0 }, 0, 0, /* No default value */ "cdma-header" }, { ATF_NOFLAGS, 0, offsetof(struct PE_CDMAParameter, authenticationKey), (ASN_TAG_CLASS_CONTEXT | (1 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, { &asn_OER_memb_authenticationKey_constr_3, &asn_PER_memb_authenticationKey_constr_3, memb_authenticationKey_constraint_1 }, 0, 0, /* No default value */ "authenticationKey" }, { ATF_POINTER, 4, offsetof(struct PE_CDMAParameter, ssd), (ASN_TAG_CLASS_CONTEXT | (2 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, { &asn_OER_memb_ssd_constr_4, &asn_PER_memb_ssd_constr_4, memb_ssd_constraint_1 }, 0, 0, /* No default value */ "ssd" }, { ATF_POINTER, 3, offsetof(struct PE_CDMAParameter, hrpdAccessAuthenticationData), (ASN_TAG_CLASS_CONTEXT | (3 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, { &asn_OER_memb_hrpdAccessAuthenticationData_constr_5, &asn_PER_memb_hrpdAccessAuthenticationData_constr_5, memb_hrpdAccessAuthenticationData_constraint_1 }, 0, 0, /* No default value */ "hrpdAccessAuthenticationData" }, { ATF_POINTER, 2, offsetof(struct PE_CDMAParameter, simpleIPAuthenticationData), (ASN_TAG_CLASS_CONTEXT | (4 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, { &asn_OER_memb_simpleIPAuthenticationData_constr_6, &asn_PER_memb_simpleIPAuthenticationData_constr_6, memb_simpleIPAuthenticationData_constraint_1 }, 0, 0, /* No default value */ "simpleIPAuthenticationData" }, { ATF_POINTER, 1, offsetof(struct PE_CDMAParameter, mobileIPAuthenticationData), (ASN_TAG_CLASS_CONTEXT | (5 << 2)), -1, /* IMPLICIT tag at current level */ &asn_DEF_OCTET_STRING, 0, { &asn_OER_memb_mobileIPAuthenticationData_constr_7, &asn_PER_memb_mobileIPAuthenticationData_constr_7, memb_mobileIPAuthenticationData_constraint_1 }, 0, 0, /* No default value */ "mobileIPAuthenticationData" }, }; static const int asn_MAP_PE_CDMAParameter_oms_1[] = { 2, 3, 4, 5 }; static const ber_tlv_tag_t asn_DEF_PE_CDMAParameter_tags_1[] = { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) }; static const asn_TYPE_tag2member_t asn_MAP_PE_CDMAParameter_tag2el_1[] = { { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cdma-header */ { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* authenticationKey */ { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ssd */ { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* hrpdAccessAuthenticationData */ { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* simpleIPAuthenticationData */ { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* mobileIPAuthenticationData */ }; asn_SEQUENCE_specifics_t asn_SPC_PE_CDMAParameter_specs_1 = { sizeof(struct PE_CDMAParameter), offsetof(struct PE_CDMAParameter, _asn_ctx), asn_MAP_PE_CDMAParameter_tag2el_1, 6, /* Count of tags in the map */ asn_MAP_PE_CDMAParameter_oms_1, /* Optional members */ 4, 0, /* Root/Additions */ 6, /* First extension addition */ }; asn_TYPE_descriptor_t asn_DEF_PE_CDMAParameter = { "PE-CDMAParameter", "PE-CDMAParameter", &asn_OP_SEQUENCE, asn_DEF_PE_CDMAParameter_tags_1, sizeof(asn_DEF_PE_CDMAParameter_tags_1) /sizeof(asn_DEF_PE_CDMAParameter_tags_1[0]), /* 1 */ asn_DEF_PE_CDMAParameter_tags_1, /* Same as above */ sizeof(asn_DEF_PE_CDMAParameter_tags_1) /sizeof(asn_DEF_PE_CDMAParameter_tags_1[0]), /* 1 */ { 0, 0, SEQUENCE_constraint }, asn_MBR_PE_CDMAParameter_1, 6, /* Elements count */ &asn_SPC_PE_CDMAParameter_specs_1 /* Additional specs */ };