8#include "CertificateBase.h"
11memb_version_constraint_1(
const asn_TYPE_descriptor_t *td,
const void *sptr,
12 asn_app_constraint_failed_f *ctfailcb,
void *app_key) {
16 ASN__CTFAIL(app_key, td, sptr,
17 "%s: value not given (%s:%d)",
18 td->name, __FILE__, __LINE__);
22 value = *(
const long *)sptr;
28 ASN__CTFAIL(app_key, td, sptr,
29 "%s: constraint failed (%s:%d)",
30 td->name, __FILE__, __LINE__);
35#if !defined(ASN_DISABLE_OER_SUPPORT)
36static asn_oer_constraints_t asn_OER_memb_version_constr_2 CC_NOTUSED = {
40#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
41static asn_per_constraints_t asn_PER_memb_version_constr_2 CC_NOTUSED = {
42 { APC_CONSTRAINED, 0, 0, 3, 3 } ,
43 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
47asn_TYPE_member_t asn_MBR_CertificateBase_1[] = {
49 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
54#if !defined(ASN_DISABLE_OER_SUPPORT)
55 &asn_OER_memb_version_constr_2,
57#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
58 &asn_PER_memb_version_constr_2,
60 memb_version_constraint_1
66 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
68 &asn_DEF_CertificateType,
71#if !defined(ASN_DISABLE_OER_SUPPORT)
74#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
83 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
85 &asn_DEF_IssuerIdentifier,
88#if !defined(ASN_DISABLE_OER_SUPPORT)
91#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
100 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
102 &asn_DEF_ToBeSignedCertificate,
105#if !defined(ASN_DISABLE_OER_SUPPORT)
108#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
117 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
122#if !defined(ASN_DISABLE_OER_SUPPORT)
125#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
134static const int asn_MAP_CertificateBase_oms_1[] = { 4 };
135static const ber_tlv_tag_t asn_DEF_CertificateBase_tags_1[] = {
136 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
138static const asn_TYPE_tag2member_t asn_MAP_CertificateBase_tag2el_1[] = {
139 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 },
140 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 },
141 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 },
142 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 },
143 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }
145asn_SEQUENCE_specifics_t asn_SPC_CertificateBase_specs_1 = {
148 asn_MAP_CertificateBase_tag2el_1,
150 asn_MAP_CertificateBase_oms_1,
154asn_TYPE_descriptor_t asn_DEF_CertificateBase = {
158 asn_DEF_CertificateBase_tags_1,
159 sizeof(asn_DEF_CertificateBase_tags_1)
160 /
sizeof(asn_DEF_CertificateBase_tags_1[0]),
161 asn_DEF_CertificateBase_tags_1,
162 sizeof(asn_DEF_CertificateBase_tags_1)
163 /
sizeof(asn_DEF_CertificateBase_tags_1[0]),
165#if !defined(ASN_DISABLE_OER_SUPPORT)
168#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
173 asn_MBR_CertificateBase_1,
175 &asn_SPC_CertificateBase_specs_1