Debian Codegraph @

lib/s1ap/asn1c/S1AP_SecurityContext.c

raw symbols SCIP
1 /*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "S1AP-IEs"
4 * found in "../support/r14.4.0/36413-e40.asn"
5 * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps`
6 */
7
8 #include "S1AP_SecurityContext.h"cxx . . $ `<file>/lib/s1ap/asn1c/S1AP_SecurityContext.h`/
9
10 #include "S1AP_ProtocolExtensionContainer.h"cxx . . $ `<file>/lib/s1ap/asn1c/S1AP_ProtocolExtensionContainer.h`/
11 static int
12 memb_S1AP_nextHopChainingCount_constraint_1cxx . . $ memb_S1AP_nextHopChainingCount_constraint_1(f655700a27bffd74).(const asn_TYPE_descriptor_tcxx . . $ asn_TYPE_descriptor_t# *td, const void *sptr,
13 asn_app_constraint_failed_fcxx . . $ asn_app_constraint_failed_f# *ctfailcb, void *app_key) {
14 long value;
15
16 if(!sptr) {
17 ASN__CTFAILcxx . . $ `lib/s1ap/asn1c/constraints.h:56:9`!(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->namecxx . . $ asn_TYPE_descriptor_s#name., __FILE__, __LINE__);
20 return -1;
21 }
22
23 value = *(const long *)sptr;
24
25 if((value >= 0 && value <= 7)) {
26 /* Constraint check succeeded */
27 return 0;
28 } else {
29 ASN__CTFAILcxx . . $ `lib/s1ap/asn1c/constraints.h:56:9`!(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->namecxx . . $ asn_TYPE_descriptor_s#name., __FILE__, __LINE__);
32 return -1;
33 }
34 }
35
36 static asn_oer_constraints_tcxx . . $ asn_oer_constraints_t# asn_OER_memb_S1AP_nextHopChainingCount_constr_2cxx . . $ asn_OER_memb_S1AP_nextHopChainingCount_constr_2. CC_NOTUSEDcxx . . $ `lib/s1ap/asn1c/asn_system.h:90:9`! = {
37 { 1, 1 } /* (0..7) */,
38 -1};
39 static asn_per_constraints_tcxx . . $ asn_per_constraints_t# asn_PER_memb_S1AP_nextHopChainingCount_constr_2cxx . . $ asn_PER_memb_S1AP_nextHopChainingCount_constr_2. CC_NOTUSEDcxx . . $ `lib/s1ap/asn1c/asn_system.h:90:9`! = {
40 { APC_CONSTRAINEDcxx . . $ APC_CONSTRAINED., 3, 3, 0, 7 } /* (0..7) */,
41 { APC_UNCONSTRAINEDcxx . . $ APC_UNCONSTRAINED., -1, -1, 0, 0 },
42 0, 0 /* No PER value map */
43 };
44 static asn_TYPE_member_tcxx . . $ asn_TYPE_member_t# asn_MBR_S1AP_SecurityContext_1cxx . . $ asn_MBR_S1AP_SecurityContext_1.[] = {
45 { ATF_NOFLAGScxx . . $ ATF_NOFLAGS., 0, offsetofcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:431:9`!(struct S1AP_SecurityContext, nextHopChainingCount),
46 (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (0 << 2)),
47 -1, /* IMPLICIT tag at current level */
48 &asn_DEF_NativeIntegercxx . . $ asn_DEF_NativeInteger.,
49 0,
50 { &asn_OER_memb_S1AP_nextHopChainingCount_constr_2cxx . . $ asn_OER_memb_S1AP_nextHopChainingCount_constr_2., &asn_PER_memb_S1AP_nextHopChainingCount_constr_2cxx . . $ asn_PER_memb_S1AP_nextHopChainingCount_constr_2., memb_S1AP_nextHopChainingCount_constraint_1cxx . . $ memb_S1AP_nextHopChainingCount_constraint_1(f655700a27bffd74). },
51 0, 0, /* No default value */
52 "nextHopChainingCount"
53 },
54 { ATF_NOFLAGScxx . . $ ATF_NOFLAGS., 0, offsetofcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:431:9`!(struct S1AP_SecurityContext, nextHopParameter),
55 (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (1 << 2)),
56 -1, /* IMPLICIT tag at current level */
57 &asn_DEF_S1AP_SecurityKeycxx . . $ asn_DEF_S1AP_SecurityKey.,
58 0,
59 { 0, 0, 0 },
60 0, 0, /* No default value */
61 "nextHopParameter"
62 },
63 { ATF_POINTERcxx . . $ ATF_POINTER., 1, offsetofcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:431:9`!(struct S1AP_SecurityContext, iE_Extensions),
64 (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (2 << 2)),
65 -1, /* IMPLICIT tag at current level */
66 &asn_DEF_S1AP_ProtocolExtensionContainer_6602P87cxx . . $ asn_DEF_S1AP_ProtocolExtensionContainer_6602P87.,
67 0,
68 { 0, 0, 0 },
69 0, 0, /* No default value */
70 "iE-Extensions"
71 },
72 };
73 static const int asn_MAP_S1AP_SecurityContext_oms_1cxx . . $ asn_MAP_S1AP_SecurityContext_oms_1.[] = { 2 };
74 static const ber_tlv_tag_tcxx . . $ ber_tlv_tag_t# asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.[] = {
75 (ASN_TAG_CLASS_UNIVERSALcxx . . $ ASN_TAG_CLASS_UNIVERSAL. | (16 << 2))
76 };
77 static const asn_TYPE_tag2member_tcxx . . $ asn_TYPE_tag2member_t# asn_MAP_S1AP_SecurityContext_tag2el_1cxx . . $ asn_MAP_S1AP_SecurityContext_tag2el_1.[] = {
78 { (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (0 << 2)), 0, 0, 0 }, /* nextHopChainingCount */
79 { (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (1 << 2)), 1, 0, 0 }, /* nextHopParameter */
80 { (ASN_TAG_CLASS_CONTEXTcxx . . $ ASN_TAG_CLASS_CONTEXT. | (2 << 2)), 2, 0, 0 } /* iE-Extensions */
81 };
82 static asn_SEQUENCE_specifics_tcxx . . $ asn_SEQUENCE_specifics_t# asn_SPC_S1AP_SecurityContext_specs_1cxx . . $ asn_SPC_S1AP_SecurityContext_specs_1. = {
83 sizeof(struct S1AP_SecurityContextcxx . . $ S1AP_SecurityContext#),
84 offsetofcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:431:9`!(struct S1AP_SecurityContext, _asn_ctx),
85 asn_MAP_S1AP_SecurityContext_tag2el_1cxx . . $ asn_MAP_S1AP_SecurityContext_tag2el_1.,
86 3, /* Count of tags in the map */
87 asn_MAP_S1AP_SecurityContext_oms_1cxx . . $ asn_MAP_S1AP_SecurityContext_oms_1., /* Optional members */
88 1, 0, /* Root/Additions */
89 3, /* First extension addition */
90 };
91 asn_TYPE_descriptor_tcxx . . $ asn_TYPE_descriptor_t# asn_DEF_S1AP_SecurityContextcxx . . $ asn_DEF_S1AP_SecurityContext. = {
92 "SecurityContext",
93 "SecurityContext",
94 &asn_OP_SEQUENCEcxx . . $ asn_OP_SEQUENCE.,
95 asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.,
96 sizeof(asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.)
97 /sizeof(asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.[0]), /* 1 */
98 asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1., /* Same as above */
99 sizeof(asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.)
100 /sizeof(asn_DEF_S1AP_SecurityContext_tags_1cxx . . $ asn_DEF_S1AP_SecurityContext_tags_1.[0]), /* 1 */
101 { 0, 0, SEQUENCE_constraintcxx . . $ SEQUENCE_constraint(f655700a27bffd74). },
102 asn_MBR_S1AP_SecurityContext_1cxx . . $ asn_MBR_S1AP_SecurityContext_1.,
103 3, /* Elements count */
104 &asn_SPC_S1AP_SecurityContext_specs_1cxx . . $ asn_SPC_S1AP_SecurityContext_specs_1. /* Additional specs */
105 };
106