Vanetza
Loading...
Searching...
No Matches
SequenceOfOctetString.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2BaseTypes"
4 * found in "Ieee1609Dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
9
10static int
11memb_OCTET_STRING_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13 const OCTET_STRING_t *st = (const OCTET_STRING_t *)sptr;
14
15 if(!sptr) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
19 return -1;
20 }
21
22
23 if(1 /* No applicable constraints whatsoever */) {
24 (void)st; /* Unused variable */
25 /* Nothing is here. See below */
26 }
27
28 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
29}
30
31#if !defined(ASN_DISABLE_OER_SUPPORT)
32static asn_oer_constraints_t asn_OER_memb_Vanetza_Security_Member_constr_2 CC_NOTUSED = {
33 { 0, 0 },
34 -1 /* (SIZE(0..MAX)) */};
35#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
36#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
37static asn_per_constraints_t asn_PER_memb_Vanetza_Security_Member_constr_2 CC_NOTUSED = {
38 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
39 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
40 0, 0 /* No PER value map */
41};
42#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
43#if !defined(ASN_DISABLE_OER_SUPPORT)
44asn_oer_constraints_t asn_OER_type_Vanetza_Security_SequenceOfOctetString_constr_1 CC_NOTUSED = {
45 { 0, 0 },
46 -1 /* (SIZE(0..MAX)) */};
47#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
48#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
49asn_per_constraints_t asn_PER_type_Vanetza_Security_SequenceOfOctetString_constr_1 CC_NOTUSED = {
50 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
51 { APC_SEMI_CONSTRAINED, -1, -1, 0, 0 } /* (SIZE(0..MAX)) */,
52 0, 0 /* No PER value map */
53};
54#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
55asn_TYPE_member_t asn_MBR_Vanetza_Security_SequenceOfOctetString_1[] = {
56 { ATF_POINTER, 0, 0,
57 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
58 0,
59 &asn_DEF_OCTET_STRING,
60 0,
61 {
62#if !defined(ASN_DISABLE_OER_SUPPORT)
63 &asn_OER_memb_Vanetza_Security_Member_constr_2,
64#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
65#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
66 &asn_PER_memb_Vanetza_Security_Member_constr_2,
67#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
68#if !defined(ASN_DISABLE_JER_SUPPORT)
69 0,
70#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
71 memb_OCTET_STRING_constraint_1
72 },
73 0, 0, /* No default value */
74 ""
75 },
76};
77static const ber_tlv_tag_t asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1[] = {
78 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
79};
80asn_SET_OF_specifics_t asn_SPC_Vanetza_Security_SequenceOfOctetString_specs_1 = {
81 sizeof(struct Vanetza_Security_SequenceOfOctetString),
82 offsetof(struct Vanetza_Security_SequenceOfOctetString, _asn_ctx),
83 0, /* XER encoding is XMLDelimitedItemList */
84};
85asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SequenceOfOctetString = {
86 "SequenceOfOctetString",
87 "SequenceOfOctetString",
88 &asn_OP_SEQUENCE_OF,
89 asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1,
90 sizeof(asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1)
91 /sizeof(asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1[0]), /* 1 */
92 asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1, /* Same as above */
93 sizeof(asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1)
94 /sizeof(asn_DEF_Vanetza_Security_SequenceOfOctetString_tags_1[0]), /* 1 */
95 {
96#if !defined(ASN_DISABLE_OER_SUPPORT)
97 &asn_OER_type_Vanetza_Security_SequenceOfOctetString_constr_1,
98#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
99#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
100 &asn_PER_type_Vanetza_Security_SequenceOfOctetString_constr_1,
101#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
102#if !defined(ASN_DISABLE_JER_SUPPORT)
103 0,
104#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
105 SEQUENCE_OF_constraint
106 },
107 asn_MBR_Vanetza_Security_SequenceOfOctetString_1,
108 1, /* Single element */
109 &asn_SPC_Vanetza_Security_SequenceOfOctetString_specs_1 /* Additional specs */
110};