Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 1 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [SIGNED] >>> ***/ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 3 | |
| 4 | #include <OBJECT_IDENTIFIER.h> |
| 5 | #include <BIT_STRING.h> |
| 6 | #include <INTEGER.h> |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 7 | #include "Name.h" |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 8 | #include <constr_SEQUENCE.h> |
| 9 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 10 | /*** <<< TYPE-DECLS [SIGNED] >>> ***/ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 11 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 12 | typedef struct SIGNED_15P0 { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 13 | struct toBeSigned { |
| 14 | INTEGER_t version; |
| 15 | OBJECT_IDENTIFIER_t signature; |
| 16 | Name_t issuer; |
| 17 | |
| 18 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 19 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 20 | } toBeSigned; |
| 21 | OBJECT_IDENTIFIER_t algorithm; |
| 22 | BIT_STRING_t signature; |
| 23 | |
| 24 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 25 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 26 | } SIGNED_15P0_t; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 27 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 28 | /*** <<< FUNC-DECLS [SIGNED] >>> ***/ |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 29 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 30 | extern asn_TYPE_descriptor_t asn_DEF_SIGNED_15P0; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 31 | extern asn_SEQUENCE_specifics_t asn_SPC_SIGNED_15P0_specs_1; |
| 32 | extern asn_TYPE_member_t asn_MBR_SIGNED_15P0_1[3]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 33 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 34 | /*** <<< CODE [SIGNED] >>> ***/ |
Lev Walkin | daa7d2b | 2004-09-05 10:37:18 +0000 | [diff] [blame] | 35 | |
| 36 | static int |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 37 | memb_signature_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 38 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | 8a7af0e | 2005-02-15 03:40:07 +0000 | [diff] [blame] | 39 | const BIT_STRING_t *st = (const BIT_STRING_t *)sptr; |
Lev Walkin | daa7d2b | 2004-09-05 10:37:18 +0000 | [diff] [blame] | 40 | size_t size; |
| 41 | |
| 42 | if(!sptr) { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 43 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | daa7d2b | 2004-09-05 10:37:18 +0000 | [diff] [blame] | 44 | "%s: value not given (%s:%d)", |
| 45 | td->name, __FILE__, __LINE__); |
| 46 | return -1; |
| 47 | } |
| 48 | |
| 49 | if(st->size > 0) { |
| 50 | /* Size in bits */ |
Lev Walkin | 1b1c5fc | 2006-09-08 19:38:11 +0000 | [diff] [blame] | 51 | size = 8 * st->size - (st->bits_unused & 0x07); |
Lev Walkin | daa7d2b | 2004-09-05 10:37:18 +0000 | [diff] [blame] | 52 | } else { |
| 53 | size = 0; |
| 54 | } |
| 55 | |
| 56 | if((size <= 256)) { |
| 57 | /* Constraint check succeeded */ |
| 58 | return 0; |
| 59 | } else { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 60 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | daa7d2b | 2004-09-05 10:37:18 +0000 | [diff] [blame] | 61 | "%s: constraint failed (%s:%d)", |
| 62 | td->name, __FILE__, __LINE__); |
| 63 | return -1; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 68 | /*** <<< STAT-DEFS [SIGNED] >>> ***/ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 69 | |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 70 | static asn_TYPE_member_t asn_MBR_toBeSigned_2[] = { |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 71 | { ATF_NOFLAGS, 0, offsetof(struct toBeSigned, version), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 72 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), |
| 73 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 74 | .type = &asn_DEF_INTEGER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 75 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 76 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 77 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 78 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 79 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 80 | .name = "version" |
| 81 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 82 | { ATF_NOFLAGS, 0, offsetof(struct toBeSigned, signature), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 83 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), |
| 84 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 85 | .type = &asn_DEF_OBJECT_IDENTIFIER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 86 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 87 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 88 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 89 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 90 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 91 | .name = "signature" |
| 92 | }, |
Lev Walkin | cc93b0f | 2004-09-10 09:18:20 +0000 | [diff] [blame] | 93 | { ATF_NOFLAGS, 0, offsetof(struct toBeSigned, issuer), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 94 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 95 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 96 | .type = &asn_DEF_Name, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 97 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 98 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 99 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 100 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 101 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 102 | .name = "issuer" |
| 103 | }, |
| 104 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 105 | static const ber_tlv_tag_t asn_DEF_toBeSigned_tags_2[] = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 106 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 107 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 108 | static const asn_TYPE_tag2member_t asn_MAP_toBeSigned_tag2el_2[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 109 | { (ASN_TAG_CLASS_UNIVERSAL | (2 << 2)), 0, 0, 0 }, /* version */ |
| 110 | { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* signature */ |
| 111 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 2, 0, 0 } /* issuer */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 112 | }; |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 113 | static asn_SEQUENCE_specifics_t asn_SPC_toBeSigned_specs_2 = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 114 | sizeof(struct toBeSigned), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 115 | offsetof(struct toBeSigned, _asn_ctx), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 116 | .tag2el = asn_MAP_toBeSigned_tag2el_2, |
| 117 | .tag2el_count = 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 118 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 119 | -1, /* Start extensions */ |
| 120 | -1 /* Stop extensions */ |
| 121 | }; |
Lev Walkin | d04430c | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 122 | static /* Use -fall-defs-global to expose */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 123 | asn_TYPE_descriptor_t asn_DEF_toBeSigned_2 = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 124 | "toBeSigned", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 125 | "toBeSigned", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 126 | &asn_OP_SEQUENCE, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 127 | SEQUENCE_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 128 | asn_DEF_toBeSigned_tags_2, |
| 129 | sizeof(asn_DEF_toBeSigned_tags_2) |
| 130 | /sizeof(asn_DEF_toBeSigned_tags_2[0]), /* 1 */ |
| 131 | asn_DEF_toBeSigned_tags_2, /* Same as above */ |
| 132 | sizeof(asn_DEF_toBeSigned_tags_2) |
| 133 | /sizeof(asn_DEF_toBeSigned_tags_2[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 134 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 135 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 136 | asn_MBR_toBeSigned_2, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 137 | 3, /* Elements count */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 138 | &asn_SPC_toBeSigned_specs_2 /* Additional specs */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 139 | }; |
| 140 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 141 | asn_TYPE_member_t asn_MBR_SIGNED_15P0_1[] = { |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 142 | { ATF_NOFLAGS, 0, offsetof(struct SIGNED_15P0, toBeSigned), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 143 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 144 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 145 | .type = &asn_DEF_toBeSigned_2, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 146 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 147 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 148 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 149 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 150 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 151 | .name = "toBeSigned" |
| 152 | }, |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 153 | { ATF_NOFLAGS, 0, offsetof(struct SIGNED_15P0, algorithm), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 154 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), |
| 155 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 156 | .type = &asn_DEF_OBJECT_IDENTIFIER, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 157 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 158 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 159 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 160 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 161 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 162 | .name = "algorithm" |
| 163 | }, |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 164 | { ATF_NOFLAGS, 0, offsetof(struct SIGNED_15P0, signature), |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 165 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), |
| 166 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 167 | .type = &asn_DEF_BIT_STRING, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 168 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 169 | .memb_constraints = memb_signature_constraint_1, |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 170 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 171 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 172 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 173 | .name = "signature" |
| 174 | }, |
| 175 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 176 | static const ber_tlv_tag_t asn_DEF_SIGNED_15P0_tags_1[] = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 177 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 178 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 179 | static const asn_TYPE_tag2member_t asn_MAP_SIGNED_15P0_tag2el_1[] = { |
Lev Walkin | 4062b01 | 2013-10-11 14:29:38 -0700 | [diff] [blame] | 180 | { (ASN_TAG_CLASS_UNIVERSAL | (3 << 2)), 2, 0, 0 }, /* signature */ |
| 181 | { (ASN_TAG_CLASS_UNIVERSAL | (6 << 2)), 1, 0, 0 }, /* algorithm */ |
| 182 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 0 } /* toBeSigned */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 183 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 184 | asn_SEQUENCE_specifics_t asn_SPC_SIGNED_15P0_specs_1 = { |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 185 | sizeof(struct SIGNED_15P0), |
| 186 | offsetof(struct SIGNED_15P0, _asn_ctx), |
Lev Walkin | e391708 | 2017-08-23 10:29:38 -0700 | [diff] [blame] | 187 | .tag2el = asn_MAP_SIGNED_15P0_tag2el_1, |
| 188 | .tag2el_count = 3, /* Count of tags in the map */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 189 | 0, 0, 0, /* Optional elements (not needed) */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 190 | -1, /* Start extensions */ |
| 191 | -1 /* Stop extensions */ |
| 192 | }; |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 193 | asn_TYPE_descriptor_t asn_DEF_SIGNED_15P0 = { |
| 194 | "SIGNED", |
| 195 | "SIGNED", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 196 | &asn_OP_SEQUENCE, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 197 | SEQUENCE_constraint, |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 198 | asn_DEF_SIGNED_15P0_tags_1, |
| 199 | sizeof(asn_DEF_SIGNED_15P0_tags_1) |
| 200 | /sizeof(asn_DEF_SIGNED_15P0_tags_1[0]), /* 1 */ |
| 201 | asn_DEF_SIGNED_15P0_tags_1, /* Same as above */ |
| 202 | sizeof(asn_DEF_SIGNED_15P0_tags_1) |
| 203 | /sizeof(asn_DEF_SIGNED_15P0_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 204 | 0, /* No OER visible constraints */ |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 205 | 0, /* No PER visible constraints */ |
| 206 | asn_MBR_SIGNED_15P0_1, |
| 207 | 3, /* Elements count */ |
| 208 | &asn_SPC_SIGNED_15P0_specs_1 /* Additional specs */ |
| 209 | }; |
| 210 | |
| 211 | |
| 212 | /*** <<< INCLUDES [Certificate] >>> ***/ |
| 213 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 214 | #include "SIGNED.h" |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 215 | |
| 216 | /*** <<< TYPE-DECLS [Certificate] >>> ***/ |
| 217 | |
| 218 | typedef SIGNED_15P0_t Certificate_t; |
| 219 | |
| 220 | /*** <<< FUNC-DECLS [Certificate] >>> ***/ |
| 221 | |
| 222 | extern asn_TYPE_descriptor_t asn_DEF_Certificate; |
| 223 | asn_struct_free_f Certificate_free; |
| 224 | asn_struct_print_f Certificate_print; |
| 225 | asn_constr_check_f Certificate_constraint; |
| 226 | ber_type_decoder_f Certificate_decode_ber; |
| 227 | der_type_encoder_f Certificate_encode_der; |
| 228 | xer_type_decoder_f Certificate_decode_xer; |
| 229 | xer_type_encoder_f Certificate_encode_xer; |
| 230 | |
| 231 | /*** <<< CODE [Certificate] >>> ***/ |
| 232 | |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 233 | /* |
| 234 | * This type is implemented using SIGNED_15P0, |
| 235 | * so here we adjust the DEF accordingly. |
| 236 | */ |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 237 | |
| 238 | /*** <<< STAT-DEFS [Certificate] >>> ***/ |
| 239 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 240 | static const ber_tlv_tag_t asn_DEF_Certificate_tags_1[] = { |
Lev Walkin | a00d6b3 | 2006-03-21 03:40:38 +0000 | [diff] [blame] | 241 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 242 | }; |
| 243 | asn_TYPE_descriptor_t asn_DEF_Certificate = { |
| 244 | "Certificate", |
| 245 | "Certificate", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 246 | &asn_OP_SEQUENCE, |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 247 | SEQUENCE_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 248 | asn_DEF_Certificate_tags_1, |
| 249 | sizeof(asn_DEF_Certificate_tags_1) |
| 250 | /sizeof(asn_DEF_Certificate_tags_1[0]), /* 1 */ |
| 251 | asn_DEF_Certificate_tags_1, /* Same as above */ |
| 252 | sizeof(asn_DEF_Certificate_tags_1) |
| 253 | /sizeof(asn_DEF_Certificate_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 254 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 255 | 0, /* No PER visible constraints */ |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 256 | asn_MBR_SIGNED_15P0_1, |
| 257 | 3, /* Elements count */ |
| 258 | &asn_SPC_SIGNED_15P0_specs_1 /* Additional specs */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 259 | }; |
| 260 | |
| 261 | |
| 262 | /*** <<< INCLUDES [Name] >>> ***/ |
| 263 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 264 | #include <asn_SEQUENCE_OF.h> |
| 265 | #include <constr_SEQUENCE_OF.h> |
| 266 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 267 | /*** <<< FWD-DECLS [Name] >>> ***/ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 268 | |
Lev Walkin | bf56d54 | 2005-03-04 23:50:56 +0000 | [diff] [blame] | 269 | struct RelativeDistinguishedName; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 270 | |
| 271 | /*** <<< TYPE-DECLS [Name] >>> ***/ |
| 272 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 273 | typedef struct Name { |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 274 | A_SEQUENCE_OF(struct RelativeDistinguishedName) list; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 275 | |
| 276 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 277 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 278 | } Name_t; |
| 279 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 280 | /*** <<< FUNC-DECLS [Name] >>> ***/ |
| 281 | |
| 282 | extern asn_TYPE_descriptor_t asn_DEF_Name; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 283 | extern asn_SET_OF_specifics_t asn_SPC_Name_specs_1; |
| 284 | extern asn_TYPE_member_t asn_MBR_Name_1[1]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 285 | |
| 286 | /*** <<< POST-INCLUDE [Name] >>> ***/ |
| 287 | |
Lev Walkin | 22b5ed4 | 2006-09-13 02:51:20 +0000 | [diff] [blame] | 288 | #include "RelativeDistinguishedName.h" |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 289 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 290 | /*** <<< STAT-DEFS [Name] >>> ***/ |
| 291 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 292 | asn_TYPE_member_t asn_MBR_Name_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 293 | { ATF_POINTER, 0, 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 294 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 295 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 296 | .type = &asn_DEF_RelativeDistinguishedName, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 297 | .type_selector = 0, |
Lev Walkin | ba58e1b | 2005-01-17 12:20:19 +0000 | [diff] [blame] | 298 | .memb_constraints = 0, /* Defer constraints checking to the member type */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 299 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 300 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 301 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 302 | .name = "" |
| 303 | }, |
| 304 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 305 | static const ber_tlv_tag_t asn_DEF_Name_tags_1[] = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 306 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 307 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 308 | asn_SET_OF_specifics_t asn_SPC_Name_specs_1 = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 309 | sizeof(struct Name), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 310 | offsetof(struct Name, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 311 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 312 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 313 | asn_TYPE_descriptor_t asn_DEF_Name = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 314 | "Name", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 315 | "Name", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 316 | &asn_OP_SEQUENCE_OF, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 317 | SEQUENCE_OF_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 318 | asn_DEF_Name_tags_1, |
| 319 | sizeof(asn_DEF_Name_tags_1) |
| 320 | /sizeof(asn_DEF_Name_tags_1[0]), /* 1 */ |
| 321 | asn_DEF_Name_tags_1, /* Same as above */ |
| 322 | sizeof(asn_DEF_Name_tags_1) |
| 323 | /sizeof(asn_DEF_Name_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 324 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 325 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 326 | asn_MBR_Name_1, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 327 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 328 | &asn_SPC_Name_specs_1 /* Additional specs */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 329 | }; |
| 330 | |
| 331 | |
| 332 | /*** <<< INCLUDES [RelativeDistinguishedName] >>> ***/ |
| 333 | |
| 334 | #include <IA5String.h> |
| 335 | #include <asn_SET_OF.h> |
| 336 | #include <constr_SET_OF.h> |
| 337 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 338 | /*** <<< TYPE-DECLS [RelativeDistinguishedName] >>> ***/ |
| 339 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 340 | typedef struct RelativeDistinguishedName { |
| 341 | A_SET_OF(IA5String_t) list; |
| 342 | |
| 343 | /* Context for parsing across buffer boundaries */ |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 344 | asn_struct_ctx_t _asn_ctx; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 345 | } RelativeDistinguishedName_t; |
| 346 | |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 347 | /*** <<< FUNC-DECLS [RelativeDistinguishedName] >>> ***/ |
| 348 | |
| 349 | extern asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 350 | extern asn_SET_OF_specifics_t asn_SPC_RelativeDistinguishedName_specs_1; |
| 351 | extern asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[1]; |
Lev Walkin | c828571 | 2005-03-04 22:18:20 +0000 | [diff] [blame] | 352 | |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 353 | /*** <<< CTABLES [RelativeDistinguishedName] >>> ***/ |
| 354 | |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 355 | static const int permitted_alphabet_table_2[256] = { |
Lev Walkin | 5b62ca8 | 2006-09-21 01:52:07 +0000 | [diff] [blame] | 356 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ |
| 357 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ |
| 358 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 0, /* ,-. */ |
| 359 | 4, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, /* 0 9 */ |
| 360 | 0, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20, /* ABCDEFGHIJKLMNO */ |
| 361 | 21,22,23,24,25,26,27,28,29,30,31, 0, 0, 0, 0, 0, /* PQRSTUVWXYZ */ |
| 362 | 0,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46, /* abcdefghijklmno */ |
| 363 | 47,48,49,50,51,52,53,54,55,56,57, 0, 0, 0, 0, 0, /* pqrstuvwxyz */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 364 | }; |
| 365 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 366 | static int check_permitted_alphabet_2(const void *sptr) { |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 367 | const int *table = permitted_alphabet_table_2; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 368 | /* The underlying type is IA5String */ |
Lev Walkin | 8a7af0e | 2005-02-15 03:40:07 +0000 | [diff] [blame] | 369 | const IA5String_t *st = (const IA5String_t *)sptr; |
Lev Walkin | a09e5da | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 370 | const uint8_t *ch = st->buf; |
| 371 | const uint8_t *end = ch + st->size; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 372 | |
| 373 | for(; ch < end; ch++) { |
| 374 | uint8_t cv = *ch; |
Lev Walkin | 775885e | 2004-08-22 12:47:03 +0000 | [diff] [blame] | 375 | if(!table[cv]) return -1; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 376 | } |
Lev Walkin | 775885e | 2004-08-22 12:47:03 +0000 | [diff] [blame] | 377 | return 0; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 378 | } |
| 379 | |
| 380 | |
| 381 | /*** <<< CODE [RelativeDistinguishedName] >>> ***/ |
| 382 | |
| 383 | static int |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 384 | memb_IA5String_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 1eded35 | 2006-07-13 11:19:01 +0000 | [diff] [blame] | 385 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
Lev Walkin | 8a7af0e | 2005-02-15 03:40:07 +0000 | [diff] [blame] | 386 | const IA5String_t *st = (const IA5String_t *)sptr; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 387 | |
| 388 | if(!sptr) { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 389 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | 16835b6 | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 390 | "%s: value not given (%s:%d)", |
| 391 | td->name, __FILE__, __LINE__); |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 392 | return -1; |
| 393 | } |
| 394 | |
| 395 | |
Lev Walkin | e8318b8 | 2005-03-06 09:29:03 +0000 | [diff] [blame] | 396 | if(!check_permitted_alphabet_2(st)) { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 397 | /* Constraint check succeeded */ |
Lev Walkin | 775885e | 2004-08-22 12:47:03 +0000 | [diff] [blame] | 398 | return 0; |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 399 | } else { |
Lev Walkin | 7c1dc05 | 2016-03-14 03:08:15 -0700 | [diff] [blame] | 400 | ASN__CTFAIL(app_key, td, sptr, |
Lev Walkin | 16835b6 | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 401 | "%s: constraint failed (%s:%d)", |
| 402 | td->name, __FILE__, __LINE__); |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 403 | return -1; |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | |
| 408 | /*** <<< STAT-DEFS [RelativeDistinguishedName] >>> ***/ |
| 409 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 410 | asn_TYPE_member_t asn_MBR_RelativeDistinguishedName_1[] = { |
Lev Walkin | 8eb4b57 | 2005-08-16 16:57:17 +0000 | [diff] [blame] | 411 | { ATF_POINTER, 0, 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 412 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 413 | .tag_mode = 0, |
Lev Walkin | ae7bf3f | 2005-08-29 10:31:14 +0000 | [diff] [blame] | 414 | .type = &asn_DEF_IA5String, |
Lev Walkin | 67a3012 | 2017-08-10 05:48:54 -0700 | [diff] [blame] | 415 | .type_selector = 0, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 416 | .memb_constraints = memb_IA5String_constraint_1, |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 417 | .oer_constraints = 0, /* OER is not compiled, use -gen-OER */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 418 | .per_constraints = 0, /* PER is not compiled, use -gen-PER */ |
| 419 | .default_value = 0, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 420 | .name = "" |
| 421 | }, |
| 422 | }; |
Lev Walkin | a7591b5 | 2014-10-12 18:37:35 -0700 | [diff] [blame] | 423 | static const ber_tlv_tag_t asn_DEF_RelativeDistinguishedName_tags_1[] = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 424 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 425 | }; |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 426 | asn_SET_OF_specifics_t asn_SPC_RelativeDistinguishedName_specs_1 = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 427 | sizeof(struct RelativeDistinguishedName), |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 428 | offsetof(struct RelativeDistinguishedName, _asn_ctx), |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 429 | 0, /* XER encoding is XMLDelimitedItemList */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 430 | }; |
Lev Walkin | dfae975 | 2004-09-29 13:19:37 +0000 | [diff] [blame] | 431 | asn_TYPE_descriptor_t asn_DEF_RelativeDistinguishedName = { |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 432 | "RelativeDistinguishedName", |
Lev Walkin | dc06f6b | 2004-10-20 15:50:55 +0000 | [diff] [blame] | 433 | "RelativeDistinguishedName", |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 434 | &asn_OP_SET_OF, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 435 | SET_OF_constraint, |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 436 | asn_DEF_RelativeDistinguishedName_tags_1, |
| 437 | sizeof(asn_DEF_RelativeDistinguishedName_tags_1) |
| 438 | /sizeof(asn_DEF_RelativeDistinguishedName_tags_1[0]), /* 1 */ |
| 439 | asn_DEF_RelativeDistinguishedName_tags_1, /* Same as above */ |
| 440 | sizeof(asn_DEF_RelativeDistinguishedName_tags_1) |
| 441 | /sizeof(asn_DEF_RelativeDistinguishedName_tags_1[0]), /* 1 */ |
Lev Walkin | b33425f | 2017-07-14 14:59:52 +0400 | [diff] [blame] | 442 | 0, /* No OER visible constraints */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 443 | 0, /* No PER visible constraints */ |
Lev Walkin | e0272aa | 2005-03-04 11:26:08 +0000 | [diff] [blame] | 444 | asn_MBR_RelativeDistinguishedName_1, |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 445 | 1, /* Single element */ |
Lev Walkin | 59b176e | 2005-11-26 11:25:14 +0000 | [diff] [blame] | 446 | &asn_SPC_RelativeDistinguishedName_specs_1 /* Additional specs */ |
Lev Walkin | 006de1c | 2004-08-20 13:37:45 +0000 | [diff] [blame] | 447 | }; |
| 448 | |