Vanetza
 
Loading...
Searching...
No Matches
InnerEcRequest.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "EtsiTs102941TypesEnrolment"
4 * found in "asn1/TS102941v131-TypesEnrolment.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "InnerEcRequest.h"
9
10static int
11memb_requestedSubjectAttributes_constraint_1(const asn_TYPE_descriptor_t *td, const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
13
14 if(!sptr) {
15 ASN__CTFAIL(app_key, td, sptr,
16 "%s: value not given (%s:%d)",
17 td->name, __FILE__, __LINE__);
18 return -1;
19 }
20
21
22 if(1 /* No applicable constraints whatsoever */) {
23 /* Nothing is here. See below */
24 }
25
26 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
27}
28
29#if !defined(ASN_DISABLE_OER_SUPPORT)
30static asn_oer_constraints_t asn_OER_memb_requestedSubjectAttributes_constr_5 CC_NOTUSED = {
31 { 0, 0 },
32 -1};
33#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
34#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
35static asn_per_constraints_t asn_PER_memb_requestedSubjectAttributes_constr_5 CC_NOTUSED = {
36 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
37 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
38 0, 0 /* No PER value map */
39};
40#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
41static asn_TYPE_member_t asn_MBR_InnerEcRequest_1[] = {
42 { ATF_NOFLAGS, 0, offsetof(struct InnerEcRequest, itsId),
43 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
44 -1, /* IMPLICIT tag at current level */
45 &asn_DEF_OCTET_STRING,
46 0,
47 {
48#if !defined(ASN_DISABLE_OER_SUPPORT)
49 0,
50#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
51#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
52 0,
53#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
54 0
55 },
56 0, 0, /* No default value */
57 "itsId"
58 },
59 { ATF_NOFLAGS, 0, offsetof(struct InnerEcRequest, certificateFormat),
60 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
61 -1, /* IMPLICIT tag at current level */
62 &asn_DEF_CertificateFormat,
63 0,
64 {
65#if !defined(ASN_DISABLE_OER_SUPPORT)
66 0,
67#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
68#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
69 0,
70#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
71 0
72 },
73 0, 0, /* No default value */
74 "certificateFormat"
75 },
76 { ATF_NOFLAGS, 0, offsetof(struct InnerEcRequest, publicKeys),
77 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
78 -1, /* IMPLICIT tag at current level */
79 &asn_DEF_PublicKeys,
80 0,
81 {
82#if !defined(ASN_DISABLE_OER_SUPPORT)
83 0,
84#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
85#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
86 0,
87#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
88 0
89 },
90 0, 0, /* No default value */
91 "publicKeys"
92 },
93 { ATF_NOFLAGS, 0, offsetof(struct InnerEcRequest, requestedSubjectAttributes),
94 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
95 -1, /* IMPLICIT tag at current level */
96 &asn_DEF_CertificateSubjectAttributes,
97 0,
98 {
99#if !defined(ASN_DISABLE_OER_SUPPORT)
100 &asn_OER_memb_requestedSubjectAttributes_constr_5,
101#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
102#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
103 &asn_PER_memb_requestedSubjectAttributes_constr_5,
104#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
105 memb_requestedSubjectAttributes_constraint_1
106 },
107 0, 0, /* No default value */
108 "requestedSubjectAttributes"
109 },
110};
111static const ber_tlv_tag_t asn_DEF_InnerEcRequest_tags_1[] = {
112 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
113};
114static const asn_TYPE_tag2member_t asn_MAP_InnerEcRequest_tag2el_1[] = {
115 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* itsId */
116 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* certificateFormat */
117 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* publicKeys */
118 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 } /* requestedSubjectAttributes */
119};
120static asn_SEQUENCE_specifics_t asn_SPC_InnerEcRequest_specs_1 = {
121 sizeof(struct InnerEcRequest),
122 offsetof(struct InnerEcRequest, _asn_ctx),
123 asn_MAP_InnerEcRequest_tag2el_1,
124 4, /* Count of tags in the map */
125 0, 0, 0, /* Optional elements (not needed) */
126 4, /* First extension addition */
127};
128asn_TYPE_descriptor_t asn_DEF_InnerEcRequest = {
129 "InnerEcRequest",
130 "InnerEcRequest",
131 &asn_OP_SEQUENCE,
132 asn_DEF_InnerEcRequest_tags_1,
133 sizeof(asn_DEF_InnerEcRequest_tags_1)
134 /sizeof(asn_DEF_InnerEcRequest_tags_1[0]), /* 1 */
135 asn_DEF_InnerEcRequest_tags_1, /* Same as above */
136 sizeof(asn_DEF_InnerEcRequest_tags_1)
137 /sizeof(asn_DEF_InnerEcRequest_tags_1[0]), /* 1 */
138 {
139#if !defined(ASN_DISABLE_OER_SUPPORT)
140 0,
141#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
142#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
143 0,
144#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
145 SEQUENCE_constraint
146 },
147 asn_MBR_InnerEcRequest_1,
148 4, /* Elements count */
149 &asn_SPC_InnerEcRequest_specs_1 /* Additional specs */
150};
151