]> git.stg.codes - stg.git/blob - libs/smux/SimpleOpen.c
More subscriptions, less notifiers.
[stg.git] / libs / smux / SimpleOpen.c
1 /*
2  * Generated by asn1c-0.9.28 (http://lionet.info/asn1c)
3  * From ASN.1 module "SMUX"
4  *      found in "SMUX.asn1"
5  *      `asn1c -S/mnt/data/software/asn1c/skeletons -fcompound-names -fwide-types`
6  */
7
8 #include "SimpleOpen.h"
9
10 static asn_TYPE_member_t asn_MBR_SimpleOpen_1[] = {
11         { ATF_NOFLAGS, 0, offsetof(struct SimpleOpen, version),
12                 (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)),
13                 0,
14                 &asn_DEF_INTEGER,
15                 0,      /* Defer constraints checking to the member type */
16                 0,      /* PER is not compiled, use -gen-PER */
17                 0,
18                 "version"
19                 },
20         { ATF_NOFLAGS, 0, offsetof(struct SimpleOpen, identity),
21                 (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)),
22                 0,
23                 &asn_DEF_OBJECT_IDENTIFIER,
24                 0,      /* Defer constraints checking to the member type */
25                 0,      /* PER is not compiled, use -gen-PER */
26                 0,
27                 "identity"
28                 },
29         { ATF_NOFLAGS, 0, offsetof(struct SimpleOpen, description),
30                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
31                 0,
32                 &asn_DEF_DisplayString,
33                 0,      /* Defer constraints checking to the member type */
34                 0,      /* PER is not compiled, use -gen-PER */
35                 0,
36                 "description"
37                 },
38         { ATF_NOFLAGS, 0, offsetof(struct SimpleOpen, password),
39                 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
40                 0,
41                 &asn_DEF_OCTET_STRING,
42                 0,      /* Defer constraints checking to the member type */
43                 0,      /* PER is not compiled, use -gen-PER */
44                 0,
45                 "password"
46                 },
47 };
48 static const ber_tlv_tag_t asn_DEF_SimpleOpen_tags_1[] = {
49         (ASN_TAG_CLASS_APPLICATION | (0 << 2)),
50         (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
51 };
52 static const asn_TYPE_tag2member_t asn_MAP_SimpleOpen_tag2el_1[] = {
53     { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version */
54     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 2, 0, 1 }, /* description */
55     { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 3, -1, 0 }, /* password */
56     { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 } /* identity */
57 };
58 static asn_SEQUENCE_specifics_t asn_SPC_SimpleOpen_specs_1 = {
59         sizeof(struct SimpleOpen),
60         offsetof(struct SimpleOpen, _asn_ctx),
61         asn_MAP_SimpleOpen_tag2el_1,
62         4,      /* Count of tags in the map */
63         0, 0, 0,        /* Optional elements (not needed) */
64         -1,     /* Start extensions */
65         -1      /* Stop extensions */
66 };
67 asn_TYPE_descriptor_t asn_DEF_SimpleOpen = {
68         "SimpleOpen",
69         "SimpleOpen",
70         SEQUENCE_free,
71         SEQUENCE_print,
72         SEQUENCE_constraint,
73         SEQUENCE_decode_ber,
74         SEQUENCE_encode_der,
75         SEQUENCE_decode_xer,
76         SEQUENCE_encode_xer,
77         0, 0,   /* No PER support, use "-gen-PER" to enable */
78         0,      /* Use generic outmost tag fetcher */
79         asn_DEF_SimpleOpen_tags_1,
80         sizeof(asn_DEF_SimpleOpen_tags_1)
81                 /sizeof(asn_DEF_SimpleOpen_tags_1[0]) - 1, /* 1 */
82         asn_DEF_SimpleOpen_tags_1,      /* Same as above */
83         sizeof(asn_DEF_SimpleOpen_tags_1)
84                 /sizeof(asn_DEF_SimpleOpen_tags_1[0]), /* 2 */
85         0,      /* No PER visible constraints */
86         asn_MBR_SimpleOpen_1,
87         4,      /* Elements count */
88         &asn_SPC_SimpleOpen_specs_1     /* Additional specs */
89 };
90