Vanetza
 
Loading...
Searching...
No Matches
FullCtl.c
1/*
2 * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
3 * From ASN.1 module "EtsiTs102941TrustLists"
4 * found in "asn1/TS102941v131-TrustLists.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R`
6 */
7
8#include "FullCtl.h"
9
10int
11FullCtl_constraint(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/*
30 * This type is implemented using CtlFormat,
31 * so here we adjust the DEF accordingly.
32 */
33#if !defined(ASN_DISABLE_OER_SUPPORT)
34static asn_oer_constraints_t asn_OER_type_FullCtl_constr_1 CC_NOTUSED = {
35 { 0, 0 },
36 -1};
37#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
38#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
39static asn_per_constraints_t asn_PER_type_FullCtl_constr_1 CC_NOTUSED = {
40 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
41 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
42 0, 0 /* No PER value map */
43};
44#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
45static const ber_tlv_tag_t asn_DEF_FullCtl_tags_1[] = {
46 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
47};
48asn_TYPE_descriptor_t asn_DEF_FullCtl = {
49 "FullCtl",
50 "FullCtl",
51 &asn_OP_SEQUENCE,
52 asn_DEF_FullCtl_tags_1,
53 sizeof(asn_DEF_FullCtl_tags_1)
54 /sizeof(asn_DEF_FullCtl_tags_1[0]), /* 1 */
55 asn_DEF_FullCtl_tags_1, /* Same as above */
56 sizeof(asn_DEF_FullCtl_tags_1)
57 /sizeof(asn_DEF_FullCtl_tags_1[0]), /* 1 */
58 {
59#if !defined(ASN_DISABLE_OER_SUPPORT)
60 &asn_OER_type_FullCtl_constr_1,
61#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
62#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
63 &asn_PER_type_FullCtl_constr_1,
64#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
65 FullCtl_constraint
66 },
67 asn_MBR_CtlFormat_1,
68 5, /* Elements count */
69 &asn_SPC_CtlFormat_specs_1 /* Additional specs */
70};
71