[Epic-ID: ODUHIGH-406][Task-ID: ODUHIGH-441]: Update name of Paging RRC Codec
[o-du/l2.git] / src / codec_utils / RRC / SecurityConfig.c
1 /*
2  * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3  * From ASN.1 module "NR-RRC-Definitions"
4  *      found in "./22April22_Paging/rrc_15.3_asn.asn1"
5  *      `asn1c -D ./22April22_Paging -fcompound-names -fno-include-deps -findirect-choice -gen-PER -no-gen-example`
6  */
7
8 #include "SecurityConfig.h"
9
10 #include "SecurityAlgorithmConfig.h"
11 /*
12  * This type is implemented using NativeEnumerated,
13  * so here we adjust the DEF accordingly.
14  */
15 static asn_oer_constraints_t asn_OER_type_keyToUse_constr_3 CC_NOTUSED = {
16         { 0, 0 },
17         -1};
18 static asn_per_constraints_t asn_PER_type_keyToUse_constr_3 CC_NOTUSED = {
19         { APC_CONSTRAINED,       1,  1,  0,  1 }        /* (0..1) */,
20         { APC_UNCONSTRAINED,    -1, -1,  0,  0 },
21         0, 0    /* No PER value map */
22 };
23 static const asn_INTEGER_enum_map_t asn_MAP_keyToUse_value2enum_3[] = {
24         { 0,    6,      "master" },
25         { 1,    9,      "secondary" }
26 };
27 static const unsigned int asn_MAP_keyToUse_enum2value_3[] = {
28         0,      /* master(0) */
29         1       /* secondary(1) */
30 };
31 static const asn_INTEGER_specifics_t asn_SPC_keyToUse_specs_3 = {
32         asn_MAP_keyToUse_value2enum_3,  /* "tag" => N; sorted by tag */
33         asn_MAP_keyToUse_enum2value_3,  /* N => "tag"; sorted by N */
34         2,      /* Number of elements in the maps */
35         0,      /* Enumeration is not extensible */
36         1,      /* Strict enumeration */
37         0,      /* Native long size */
38         0
39 };
40 static const ber_tlv_tag_t asn_DEF_keyToUse_tags_3[] = {
41         (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
42         (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
43 };
44 static /* Use -fall-defs-global to expose */
45 asn_TYPE_descriptor_t asn_DEF_keyToUse_3 = {
46         "keyToUse",
47         "keyToUse",
48         &asn_OP_NativeEnumerated,
49         asn_DEF_keyToUse_tags_3,
50         sizeof(asn_DEF_keyToUse_tags_3)
51                 /sizeof(asn_DEF_keyToUse_tags_3[0]) - 1, /* 1 */
52         asn_DEF_keyToUse_tags_3,        /* Same as above */
53         sizeof(asn_DEF_keyToUse_tags_3)
54                 /sizeof(asn_DEF_keyToUse_tags_3[0]), /* 2 */
55         { &asn_OER_type_keyToUse_constr_3, &asn_PER_type_keyToUse_constr_3, NativeEnumerated_constraint },
56         0, 0,   /* Defined elsewhere */
57         &asn_SPC_keyToUse_specs_3       /* Additional specs */
58 };
59
60 asn_TYPE_member_t asn_MBR_SecurityConfig_1[] = {
61         { ATF_POINTER, 2, offsetof(struct SecurityConfig, securityAlgorithmConfig),
62                 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
63                 -1,     /* IMPLICIT tag at current level */
64                 &asn_DEF_SecurityAlgorithmConfig,
65                 0,
66                 { 0, 0, 0 },
67                 0, 0, /* No default value */
68                 "securityAlgorithmConfig"
69                 },
70         { ATF_POINTER, 1, offsetof(struct SecurityConfig, keyToUse),
71                 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
72                 -1,     /* IMPLICIT tag at current level */
73                 &asn_DEF_keyToUse_3,
74                 0,
75                 { 0, 0, 0 },
76                 0, 0, /* No default value */
77                 "keyToUse"
78                 },
79 };
80 static const int asn_MAP_SecurityConfig_oms_1[] = { 0, 1 };
81 static const ber_tlv_tag_t asn_DEF_SecurityConfig_tags_1[] = {
82         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
83 };
84 static const asn_TYPE_tag2member_t asn_MAP_SecurityConfig_tag2el_1[] = {
85     { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* securityAlgorithmConfig */
86     { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* keyToUse */
87 };
88 asn_SEQUENCE_specifics_t asn_SPC_SecurityConfig_specs_1 = {
89         sizeof(struct SecurityConfig),
90         offsetof(struct SecurityConfig, _asn_ctx),
91         asn_MAP_SecurityConfig_tag2el_1,
92         2,      /* Count of tags in the map */
93         asn_MAP_SecurityConfig_oms_1,   /* Optional members */
94         2, 0,   /* Root/Additions */
95         2,      /* First extension addition */
96 };
97 asn_TYPE_descriptor_t asn_DEF_SecurityConfig = {
98         "SecurityConfig",
99         "SecurityConfig",
100         &asn_OP_SEQUENCE,
101         asn_DEF_SecurityConfig_tags_1,
102         sizeof(asn_DEF_SecurityConfig_tags_1)
103                 /sizeof(asn_DEF_SecurityConfig_tags_1[0]), /* 1 */
104         asn_DEF_SecurityConfig_tags_1,  /* Same as above */
105         sizeof(asn_DEF_SecurityConfig_tags_1)
106                 /sizeof(asn_DEF_SecurityConfig_tags_1[0]), /* 1 */
107         { 0, 0, SEQUENCE_constraint },
108         asn_MBR_SecurityConfig_1,
109         2,      /* Elements count */
110         &asn_SPC_SecurityConfig_specs_1 /* Additional specs */
111 };
112