8#include "CertificateId.h"
11memb_binaryId_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;
17 ASN__CTFAIL(app_key, td, sptr,
18 "%s: value not given (%s:%d)",
19 td->name, __FILE__, __LINE__);
25 if((size >= 1UL && size <= 64UL)) {
29 ASN__CTFAIL(app_key, td, sptr,
30 "%s: constraint failed (%s:%d)",
31 td->name, __FILE__, __LINE__);
36#if !defined(ASN_DISABLE_OER_SUPPORT)
37static asn_oer_constraints_t asn_OER_memb_binaryId_constr_4 CC_NOTUSED = {
41#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
42static asn_per_constraints_t asn_PER_memb_binaryId_constr_4 CC_NOTUSED = {
43 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
44 { APC_CONSTRAINED, 6, 6, 1, 64 } ,
48#if !defined(ASN_DISABLE_OER_SUPPORT)
49static asn_oer_constraints_t asn_OER_type_CertificateId_constr_1 CC_NOTUSED = {
53#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
54asn_per_constraints_t asn_PER_type_CertificateId_constr_1 CC_NOTUSED = {
55 { APC_CONSTRAINED | APC_EXTENSIBLE, 2, 2, 0, 3 } ,
56 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
60asn_TYPE_member_t asn_MBR_CertificateId_1[] = {
61 { ATF_NOFLAGS, 0, offsetof(
struct CertificateId, choice.linkageData),
62 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
67#if !defined(ASN_DISABLE_OER_SUPPORT)
70#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
78 { ATF_NOFLAGS, 0, offsetof(
struct CertificateId, choice.name),
79 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
84#if !defined(ASN_DISABLE_OER_SUPPORT)
87#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
95 { ATF_NOFLAGS, 0, offsetof(
struct CertificateId, choice.binaryId),
96 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
98 &asn_DEF_OCTET_STRING,
101#if !defined(ASN_DISABLE_OER_SUPPORT)
102 &asn_OER_memb_binaryId_constr_4,
104#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
105 &asn_PER_memb_binaryId_constr_4,
107 memb_binaryId_constraint_1
112 { ATF_NOFLAGS, 0, offsetof(
struct CertificateId, choice.none),
113 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
118#if !defined(ASN_DISABLE_OER_SUPPORT)
121#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
130static const asn_TYPE_tag2member_t asn_MAP_CertificateId_tag2el_1[] = {
131 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 },
132 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 },
133 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 },
134 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }
136asn_CHOICE_specifics_t asn_SPC_CertificateId_specs_1 = {
141 asn_MAP_CertificateId_tag2el_1,
146asn_TYPE_descriptor_t asn_DEF_CertificateId = {
155#if !defined(ASN_DISABLE_OER_SUPPORT)
156 &asn_OER_type_CertificateId_constr_1,
158#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
159 &asn_PER_type_CertificateId_constr_1,
163 asn_MBR_CertificateId_1,
165 &asn_SPC_CertificateId_specs_1