Vanetza
 
Loading...
Searching...
No Matches
SequenceOfOctetString.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "IEEE1609dot2BaseTypes"
4 * found in "asn1/IEEE1609dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "SequenceOfOctetString.h"
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_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_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)
44static asn_oer_constraints_t asn_OER_type_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_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_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_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_Member_constr_2,
67#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
68 memb_OCTET_STRING_constraint_1
69 },
70 0, 0, /* No default value */
71 ""
72 },
73};
74static const ber_tlv_tag_t asn_DEF_SequenceOfOctetString_tags_1[] = {
75 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
76};
77asn_SET_OF_specifics_t asn_SPC_SequenceOfOctetString_specs_1 = {
78 sizeof(struct SequenceOfOctetString),
79 offsetof(struct SequenceOfOctetString, _asn_ctx),
80 0, /* XER encoding is XMLDelimitedItemList */
81};
82asn_TYPE_descriptor_t asn_DEF_SequenceOfOctetString = {
83 "SequenceOfOctetString",
84 "SequenceOfOctetString",
85 &asn_OP_SEQUENCE_OF,
86 asn_DEF_SequenceOfOctetString_tags_1,
87 sizeof(asn_DEF_SequenceOfOctetString_tags_1)
88 /sizeof(asn_DEF_SequenceOfOctetString_tags_1[0]), /* 1 */
89 asn_DEF_SequenceOfOctetString_tags_1, /* Same as above */
90 sizeof(asn_DEF_SequenceOfOctetString_tags_1)
91 /sizeof(asn_DEF_SequenceOfOctetString_tags_1[0]), /* 1 */
92 {
93#if !defined(ASN_DISABLE_OER_SUPPORT)
94 &asn_OER_type_SequenceOfOctetString_constr_1,
95#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
96#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
97 &asn_PER_type_SequenceOfOctetString_constr_1,
98#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
99 SEQUENCE_OF_constraint
100 },
101 asn_MBR_SequenceOfOctetString_1,
102 1, /* Single element */
103 &asn_SPC_SequenceOfOctetString_specs_1 /* Additional specs */
104};
105