vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 2 | /*** <<< INCLUDES [LogLine] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 3 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4 | #include <IA5String.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 5 | #include <VariablePartSet.h> |
| 6 | #include <asn_SEQUENCE_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 7 | #include <constr_SEQUENCE_OF.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 8 | #include <constr_SEQUENCE.h> |
| 9 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 10 | /*** <<< DEPS [LogLine] >>> ***/ |
| 11 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 12 | extern asn1_TYPE_descriptor_t asn1_DEF_LogLine; |
| 13 | |
| 14 | /*** <<< TYPE-DECLS [LogLine] >>> ***/ |
| 15 | |
| 16 | |
| 17 | typedef struct LogLine { |
| 18 | IA5String_t line_digest; |
| 19 | struct varsets { |
| 20 | A_SEQUENCE_OF(struct VariablePartSet) list; |
| 21 | |
| 22 | /* Context for parsing across buffer boundaries */ |
| 23 | ber_dec_ctx_t _ber_dec_ctx; |
| 24 | } varsets; |
| 25 | /* |
| 26 | * This type is extensible, |
| 27 | * possible extensions are below. |
| 28 | */ |
| 29 | |
| 30 | /* Context for parsing across buffer boundaries */ |
| 31 | ber_dec_ctx_t _ber_dec_ctx; |
| 32 | } LogLine_t; |
| 33 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 34 | /*** <<< CODE [LogLine] >>> ***/ |
| 35 | |
| 36 | static int |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 37 | memb_varsets_1_constraint(asn1_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 38 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 39 | size_t size; |
| 40 | |
| 41 | if(!sptr) { |
| 42 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 43 | "%s: value not given (%s:%d)", |
| 44 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 45 | return -1; |
| 46 | } |
| 47 | |
| 48 | { /* Determine the number of elements */ |
| 49 | const A_SEQUENCE_OF(void) *list; |
| 50 | (const void *)list = sptr; |
| 51 | size = list->count; |
| 52 | } |
| 53 | |
| 54 | if((size >= 1)) { |
| 55 | /* Constraint check succeeded */ |
vlm | cdf661b | 2004-08-22 12:47:03 +0000 | [diff] [blame] | 56 | return 0; |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 57 | } else { |
| 58 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 59 | "%s: constraint failed (%s:%d)", |
| 60 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 61 | return -1; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 66 | /*** <<< STAT-DEFS [LogLine] >>> ***/ |
| 67 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 68 | static asn1_TYPE_member_t asn1_MBR_varsets[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 69 | { ATF_NOFLAGS, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 70 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 71 | .tag_mode = 0, |
| 72 | .type = (void *)&asn1_DEF_VariablePartSet, |
| 73 | .memb_constraints = 0, /* Defer to actual type */ |
| 74 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 75 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 76 | }; |
| 77 | static ber_tlv_tag_t asn1_DEF_varsets_tags[] = { |
| 78 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 79 | }; |
| 80 | static asn1_SET_OF_specifics_t asn1_DEF_varsets_specs = { |
| 81 | sizeof(struct varsets), |
| 82 | offsetof(struct varsets, _ber_dec_ctx), |
| 83 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 84 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 85 | asn1_TYPE_descriptor_t asn1_DEF_varsets = { |
| 86 | "varsets", |
| 87 | SEQUENCE_OF_constraint, |
| 88 | SEQUENCE_OF_decode_ber, |
| 89 | SEQUENCE_OF_encode_der, |
| 90 | SEQUENCE_OF_print, |
| 91 | SEQUENCE_OF_free, |
| 92 | 0, /* Use generic outmost tag fetcher */ |
| 93 | asn1_DEF_varsets_tags, |
| 94 | sizeof(asn1_DEF_varsets_tags) |
| 95 | /sizeof(asn1_DEF_varsets_tags[0]), /* 1 */ |
| 96 | 1, /* Tags to skip */ |
| 97 | 1, /* Whether CONSTRUCTED */ |
| 98 | asn1_MBR_varsets, |
| 99 | 1, /* Single element */ |
| 100 | &asn1_DEF_varsets_specs /* Additional specs */ |
| 101 | }; |
| 102 | |
| 103 | static asn1_TYPE_member_t asn1_MBR_LogLine[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 104 | { ATF_NOFLAGS, 0, offsetof(struct LogLine, line_digest), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 105 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), |
| 106 | .tag_mode = 0, |
| 107 | .type = (void *)&asn1_DEF_IA5String, |
| 108 | .memb_constraints = 0, /* Defer to actual type */ |
| 109 | .name = "line-digest" |
| 110 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 111 | { ATF_NOFLAGS, 0, offsetof(struct LogLine, varsets), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 112 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 113 | .tag_mode = 0, |
| 114 | .type = (void *)&asn1_DEF_varsets, |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 115 | .memb_constraints = memb_varsets_1_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 116 | .name = "varsets" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 117 | }, |
| 118 | }; |
| 119 | static ber_tlv_tag_t asn1_DEF_LogLine_tags[] = { |
| 120 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 121 | }; |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 122 | static asn1_TYPE_tag2member_t asn1_DEF_LogLine_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 123 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* varsets at 25 */ |
| 124 | { (ASN_TAG_CLASS_UNIVERSAL | (22 << 2)), 0, 0, 0 }, /* line-digest at 23 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 125 | }; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 126 | static asn1_SEQUENCE_specifics_t asn1_DEF_LogLine_specs = { |
| 127 | sizeof(struct LogLine), |
| 128 | offsetof(struct LogLine, _ber_dec_ctx), |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 129 | asn1_DEF_LogLine_tag2el, |
| 130 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 131 | 1, /* Start extensions */ |
| 132 | 3 /* Stop extensions */ |
| 133 | }; |
| 134 | asn1_TYPE_descriptor_t asn1_DEF_LogLine = { |
| 135 | "LogLine", |
| 136 | SEQUENCE_constraint, |
| 137 | SEQUENCE_decode_ber, |
| 138 | SEQUENCE_encode_der, |
| 139 | SEQUENCE_print, |
| 140 | SEQUENCE_free, |
| 141 | 0, /* Use generic outmost tag fetcher */ |
| 142 | asn1_DEF_LogLine_tags, |
| 143 | sizeof(asn1_DEF_LogLine_tags) |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 144 | /sizeof(asn1_DEF_LogLine_tags[0]), /* 1 */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 145 | 1, /* Tags to skip */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 146 | 1, /* Whether CONSTRUCTED */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 147 | asn1_MBR_LogLine, |
| 148 | 2, /* Elements count */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 149 | &asn1_DEF_LogLine_specs /* Additional specs */ |
| 150 | }; |
| 151 | |
| 152 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 153 | /*** <<< INCLUDES [VariablePartSet] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 154 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 155 | #include <ActionItem.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 156 | #include <VariablePart.h> |
| 157 | #include <asn_SEQUENCE_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 158 | #include <constr_SEQUENCE_OF.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 159 | #include <constr_SEQUENCE.h> |
| 160 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 161 | /*** <<< DEPS [VariablePartSet] >>> ***/ |
| 162 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 163 | extern asn1_TYPE_descriptor_t asn1_DEF_VariablePartSet; |
| 164 | |
| 165 | /*** <<< TYPE-DECLS [VariablePartSet] >>> ***/ |
| 166 | |
| 167 | |
| 168 | typedef struct VariablePartSet { |
| 169 | struct vparts { |
| 170 | A_SEQUENCE_OF(struct VariablePart) list; |
| 171 | |
| 172 | /* Context for parsing across buffer boundaries */ |
| 173 | ber_dec_ctx_t _ber_dec_ctx; |
| 174 | } vparts; |
| 175 | ActionItem_t resolution; |
| 176 | /* |
| 177 | * This type is extensible, |
| 178 | * possible extensions are below. |
| 179 | */ |
| 180 | |
| 181 | /* Context for parsing across buffer boundaries */ |
| 182 | ber_dec_ctx_t _ber_dec_ctx; |
| 183 | } VariablePartSet_t; |
| 184 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 185 | /*** <<< CODE [VariablePartSet] >>> ***/ |
| 186 | |
| 187 | static int |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 188 | memb_vparts_2_constraint(asn1_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 189 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 190 | |
| 191 | if(!sptr) { |
| 192 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 193 | "%s: value not given (%s:%d)", |
| 194 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 195 | return -1; |
| 196 | } |
| 197 | |
| 198 | |
| 199 | if(1 /* No applicable constraints whatsoever */) { |
| 200 | /* Nothing is here. See below */ |
| 201 | } |
| 202 | |
| 203 | return td->check_constraints |
| 204 | (td, sptr, app_errlog, app_key); |
| 205 | } |
| 206 | |
| 207 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 208 | /*** <<< STAT-DEFS [VariablePartSet] >>> ***/ |
| 209 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 210 | static asn1_TYPE_member_t asn1_MBR_vparts[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 211 | { ATF_NOFLAGS, 0, 0, |
vlm | 60e05a4 | 2004-09-04 04:54:42 +0000 | [diff] [blame] | 212 | .tag = -1 /* Ambiguous tag (CHOICE|ANY?) */, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 213 | .tag_mode = 0, |
| 214 | .type = (void *)&asn1_DEF_VariablePart, |
| 215 | .memb_constraints = 0, /* Defer to actual type */ |
| 216 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 217 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 218 | }; |
| 219 | static ber_tlv_tag_t asn1_DEF_vparts_tags[] = { |
| 220 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 221 | }; |
| 222 | static asn1_SET_OF_specifics_t asn1_DEF_vparts_specs = { |
| 223 | sizeof(struct vparts), |
| 224 | offsetof(struct vparts, _ber_dec_ctx), |
| 225 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 226 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 227 | asn1_TYPE_descriptor_t asn1_DEF_vparts = { |
| 228 | "vparts", |
| 229 | SEQUENCE_OF_constraint, |
| 230 | SEQUENCE_OF_decode_ber, |
| 231 | SEQUENCE_OF_encode_der, |
| 232 | SEQUENCE_OF_print, |
| 233 | SEQUENCE_OF_free, |
| 234 | 0, /* Use generic outmost tag fetcher */ |
| 235 | asn1_DEF_vparts_tags, |
| 236 | sizeof(asn1_DEF_vparts_tags) |
| 237 | /sizeof(asn1_DEF_vparts_tags[0]), /* 1 */ |
| 238 | 1, /* Tags to skip */ |
| 239 | 1, /* Whether CONSTRUCTED */ |
| 240 | asn1_MBR_vparts, |
| 241 | 1, /* Single element */ |
| 242 | &asn1_DEF_vparts_specs /* Additional specs */ |
| 243 | }; |
| 244 | |
| 245 | static asn1_TYPE_member_t asn1_MBR_VariablePartSet[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 246 | { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, vparts), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 247 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 248 | .tag_mode = 0, |
| 249 | .type = (void *)&asn1_DEF_vparts, |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 250 | .memb_constraints = memb_vparts_2_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 251 | .name = "vparts" |
| 252 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 253 | { ATF_NOFLAGS, 0, offsetof(struct VariablePartSet, resolution), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 254 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 255 | .tag_mode = 0, |
| 256 | .type = (void *)&asn1_DEF_ActionItem, |
| 257 | .memb_constraints = 0, /* Defer to actual type */ |
| 258 | .name = "resolution" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 259 | }, |
| 260 | }; |
| 261 | static ber_tlv_tag_t asn1_DEF_VariablePartSet_tags[] = { |
| 262 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 263 | }; |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 264 | static asn1_TYPE_tag2member_t asn1_DEF_VariablePartSet_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 265 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 0, 0, 1 }, /* vparts at 33 */ |
| 266 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, -1, 0 }, /* resolution at 35 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 267 | }; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 268 | static asn1_SEQUENCE_specifics_t asn1_DEF_VariablePartSet_specs = { |
| 269 | sizeof(struct VariablePartSet), |
| 270 | offsetof(struct VariablePartSet, _ber_dec_ctx), |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 271 | asn1_DEF_VariablePartSet_tag2el, |
| 272 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 273 | 1, /* Start extensions */ |
| 274 | 3 /* Stop extensions */ |
| 275 | }; |
| 276 | asn1_TYPE_descriptor_t asn1_DEF_VariablePartSet = { |
| 277 | "VariablePartSet", |
| 278 | SEQUENCE_constraint, |
| 279 | SEQUENCE_decode_ber, |
| 280 | SEQUENCE_encode_der, |
| 281 | SEQUENCE_print, |
| 282 | SEQUENCE_free, |
| 283 | 0, /* Use generic outmost tag fetcher */ |
| 284 | asn1_DEF_VariablePartSet_tags, |
| 285 | sizeof(asn1_DEF_VariablePartSet_tags) |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 286 | /sizeof(asn1_DEF_VariablePartSet_tags[0]), /* 1 */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 287 | 1, /* Tags to skip */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 288 | 1, /* Whether CONSTRUCTED */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 289 | asn1_MBR_VariablePartSet, |
| 290 | 2, /* Elements count */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 291 | &asn1_DEF_VariablePartSet_specs /* Additional specs */ |
| 292 | }; |
| 293 | |
| 294 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 295 | /*** <<< INCLUDES [VariablePart] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 296 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 297 | #include <VisibleString.h> |
| 298 | #include <asn_SET_OF.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 299 | #include <constr_SET_OF.h> |
| 300 | #include <constr_SEQUENCE.h> |
| 301 | #include <constr_CHOICE.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 302 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 303 | /*** <<< DEPS [VariablePart] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 304 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 305 | typedef enum VariablePart_PR { |
| 306 | VariablePart_PR_NOTHING, /* No components present */ |
| 307 | VariablePart_PR_vset, |
| 308 | VariablePart_PR_vrange, |
| 309 | /* Extensions may appear below */ |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 310 | } VariablePart_PR; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 311 | extern asn1_TYPE_descriptor_t asn1_DEF_VariablePart; |
| 312 | |
| 313 | /*** <<< TYPE-DECLS [VariablePart] >>> ***/ |
| 314 | |
| 315 | |
| 316 | typedef struct VariablePart { |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 317 | VariablePart_PR present; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 318 | union { |
| 319 | struct vset { |
| 320 | A_SET_OF(VisibleString_t) list; |
| 321 | |
| 322 | /* Context for parsing across buffer boundaries */ |
| 323 | ber_dec_ctx_t _ber_dec_ctx; |
| 324 | } vset; |
| 325 | struct vrange { |
| 326 | VisibleString_t from; |
| 327 | VisibleString_t to; |
| 328 | /* |
| 329 | * This type is extensible, |
| 330 | * possible extensions are below. |
| 331 | */ |
| 332 | |
| 333 | /* Context for parsing across buffer boundaries */ |
| 334 | ber_dec_ctx_t _ber_dec_ctx; |
| 335 | } vrange; |
| 336 | /* |
| 337 | * This type is extensible, |
| 338 | * possible extensions are below. |
| 339 | */ |
| 340 | } choice; |
| 341 | |
| 342 | /* Context for parsing across buffer boundaries */ |
| 343 | ber_dec_ctx_t _ber_dec_ctx; |
| 344 | } VariablePart_t; |
| 345 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 346 | /*** <<< CODE [VariablePart] >>> ***/ |
| 347 | |
| 348 | static int |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 349 | memb_vset_3_constraint(asn1_TYPE_descriptor_t *td, const void *sptr, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 350 | asn_app_consume_bytes_f *app_errlog, void *app_key) { |
| 351 | size_t size; |
| 352 | |
| 353 | if(!sptr) { |
| 354 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 355 | "%s: value not given (%s:%d)", |
| 356 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 357 | return -1; |
| 358 | } |
| 359 | |
| 360 | { /* Determine the number of elements */ |
| 361 | const A_SET_OF(void) *list; |
| 362 | (const void *)list = sptr; |
| 363 | size = list->count; |
| 364 | } |
| 365 | |
| 366 | if((size >= 1)) { |
| 367 | /* Constraint check succeeded */ |
vlm | cdf661b | 2004-08-22 12:47:03 +0000 | [diff] [blame] | 368 | return 0; |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 369 | } else { |
| 370 | _ASN_ERRLOG(app_errlog, app_key, |
vlm | 758530a | 2004-08-22 13:47:59 +0000 | [diff] [blame] | 371 | "%s: constraint failed (%s:%d)", |
| 372 | td->name, __FILE__, __LINE__); |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 373 | return -1; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 378 | /*** <<< STAT-DEFS [VariablePart] >>> ***/ |
| 379 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 380 | static asn1_TYPE_member_t asn1_MBR_vset[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 381 | { ATF_NOFLAGS, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 382 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 383 | .tag_mode = 0, |
| 384 | .type = (void *)&asn1_DEF_VisibleString, |
| 385 | .memb_constraints = 0, /* Defer to actual type */ |
| 386 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 387 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 388 | }; |
| 389 | static ber_tlv_tag_t asn1_DEF_vset_tags[] = { |
| 390 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 391 | }; |
| 392 | static asn1_SET_OF_specifics_t asn1_DEF_vset_specs = { |
| 393 | sizeof(struct vset), |
| 394 | offsetof(struct vset, _ber_dec_ctx), |
| 395 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 396 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 397 | asn1_TYPE_descriptor_t asn1_DEF_vset = { |
| 398 | "vset", |
| 399 | SET_OF_constraint, |
| 400 | SET_OF_decode_ber, |
| 401 | SET_OF_encode_der, |
| 402 | SET_OF_print, |
| 403 | SET_OF_free, |
| 404 | 0, /* Use generic outmost tag fetcher */ |
| 405 | asn1_DEF_vset_tags, |
| 406 | sizeof(asn1_DEF_vset_tags) |
| 407 | /sizeof(asn1_DEF_vset_tags[0]), /* 1 */ |
| 408 | 1, /* Tags to skip */ |
| 409 | 1, /* Whether CONSTRUCTED */ |
| 410 | asn1_MBR_vset, |
| 411 | 1, /* Single element */ |
| 412 | &asn1_DEF_vset_specs /* Additional specs */ |
| 413 | }; |
| 414 | |
| 415 | static asn1_TYPE_member_t asn1_MBR_vrange[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 416 | { ATF_NOFLAGS, 0, offsetof(struct vrange, from), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 417 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 418 | .tag_mode = 0, |
| 419 | .type = (void *)&asn1_DEF_VisibleString, |
| 420 | .memb_constraints = 0, /* Defer to actual type */ |
| 421 | .name = "from" |
| 422 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 423 | { ATF_NOFLAGS, 0, offsetof(struct vrange, to), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 424 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 425 | .tag_mode = 0, |
| 426 | .type = (void *)&asn1_DEF_VisibleString, |
| 427 | .memb_constraints = 0, /* Defer to actual type */ |
| 428 | .name = "to" |
| 429 | }, |
| 430 | }; |
| 431 | static ber_tlv_tag_t asn1_DEF_vrange_tags[] = { |
| 432 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 433 | }; |
| 434 | static asn1_TYPE_tag2member_t asn1_DEF_vrange_tag2el[] = { |
| 435 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 0, 0, 1 }, /* from at 45 */ |
| 436 | { (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), 1, -1, 0 }, /* to at 46 */ |
| 437 | }; |
| 438 | static asn1_SEQUENCE_specifics_t asn1_DEF_vrange_specs = { |
| 439 | sizeof(struct vrange), |
| 440 | offsetof(struct vrange, _ber_dec_ctx), |
| 441 | asn1_DEF_vrange_tag2el, |
| 442 | 2, /* Count of tags in the map */ |
| 443 | 1, /* Start extensions */ |
| 444 | 3 /* Stop extensions */ |
| 445 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 446 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 447 | asn1_TYPE_descriptor_t asn1_DEF_vrange = { |
| 448 | "vrange", |
| 449 | SEQUENCE_constraint, |
| 450 | SEQUENCE_decode_ber, |
| 451 | SEQUENCE_encode_der, |
| 452 | SEQUENCE_print, |
| 453 | SEQUENCE_free, |
| 454 | 0, /* Use generic outmost tag fetcher */ |
| 455 | asn1_DEF_vrange_tags, |
| 456 | sizeof(asn1_DEF_vrange_tags) |
| 457 | /sizeof(asn1_DEF_vrange_tags[0]), /* 1 */ |
| 458 | 1, /* Tags to skip */ |
| 459 | 1, /* Whether CONSTRUCTED */ |
| 460 | asn1_MBR_vrange, |
| 461 | 2, /* Elements count */ |
| 462 | &asn1_DEF_vrange_specs /* Additional specs */ |
| 463 | }; |
| 464 | |
| 465 | static asn1_TYPE_member_t asn1_MBR_VariablePart[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 466 | { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vset), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 467 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 468 | .tag_mode = 0, |
| 469 | .type = (void *)&asn1_DEF_vset, |
vlm | 824aefc | 2004-08-22 03:19:00 +0000 | [diff] [blame] | 470 | .memb_constraints = memb_vset_3_constraint, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 471 | .name = "vset" |
| 472 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 473 | { ATF_NOFLAGS, 0, offsetof(struct VariablePart, choice.vrange), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 474 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 475 | .tag_mode = 0, |
| 476 | .type = (void *)&asn1_DEF_vrange, |
| 477 | .memb_constraints = 0, /* Defer to actual type */ |
| 478 | .name = "vrange" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 479 | }, |
| 480 | }; |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 481 | static asn1_TYPE_tag2member_t asn1_DEF_VariablePart_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 482 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* vrange at 45 */ |
| 483 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 0, 0, 0 }, /* vset at 42 */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 484 | }; |
| 485 | static asn1_CHOICE_specifics_t asn1_DEF_VariablePart_specs = { |
| 486 | sizeof(struct VariablePart), |
| 487 | offsetof(struct VariablePart, _ber_dec_ctx), |
| 488 | offsetof(struct VariablePart, present), |
| 489 | sizeof(((struct VariablePart *)0)->present), |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 490 | asn1_DEF_VariablePart_tag2el, |
| 491 | 2, /* Count of tags in the map */ |
vlm | 27ee528 | 2004-07-01 00:49:55 +0000 | [diff] [blame] | 492 | 1 /* Whether extensible */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 493 | }; |
| 494 | asn1_TYPE_descriptor_t asn1_DEF_VariablePart = { |
| 495 | "VariablePart", |
| 496 | CHOICE_constraint, |
| 497 | CHOICE_decode_ber, |
| 498 | CHOICE_encode_der, |
| 499 | CHOICE_print, |
| 500 | CHOICE_free, |
| 501 | CHOICE_outmost_tag, |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 502 | 0, /* No explicit tags (pointer) */ |
| 503 | 0, /* No explicit tags (count) */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 504 | 0, /* Tags to skip */ |
| 505 | 1, /* Whether CONSTRUCTED */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 506 | asn1_MBR_VariablePart, |
| 507 | 2, /* Elements count */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 508 | &asn1_DEF_VariablePart_specs /* Additional specs */ |
| 509 | }; |
| 510 | |
| 511 | |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 512 | /*** <<< INCLUDES [ActionItem] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 513 | |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 514 | #include <ENUMERATED.h> |
vlm | 6e1b13e | 2004-08-11 05:25:47 +0000 | [diff] [blame] | 515 | #include <BOOLEAN.h> |
| 516 | #include <VisibleString.h> |
| 517 | #include <asn_SET_OF.h> |
| 518 | #include <constr_SET_OF.h> |
| 519 | #include <constr_SEQUENCE.h> |
| 520 | |
| 521 | /*** <<< DEPS [ActionItem] >>> ***/ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 522 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 523 | typedef enum accept_as { |
| 524 | accept_as_unknown = 0, |
| 525 | accept_as_safe = 1, |
| 526 | accept_as_unsafe = 2, |
| 527 | /* |
| 528 | * Enumeration is extensible |
| 529 | */ |
| 530 | } accept_as_e; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 531 | extern asn1_TYPE_descriptor_t asn1_DEF_ActionItem; |
| 532 | |
| 533 | /*** <<< TYPE-DECLS [ActionItem] >>> ***/ |
| 534 | |
| 535 | |
| 536 | typedef struct ActionItem { |
| 537 | ENUMERATED_t accept_as; |
| 538 | struct notify { |
| 539 | BOOLEAN_t critical; |
| 540 | struct email { |
| 541 | A_SET_OF(VisibleString_t) list; |
| 542 | |
| 543 | /* Context for parsing across buffer boundaries */ |
| 544 | ber_dec_ctx_t _ber_dec_ctx; |
| 545 | } email; |
| 546 | /* |
| 547 | * This type is extensible, |
| 548 | * possible extensions are below. |
| 549 | */ |
| 550 | |
| 551 | /* Context for parsing across buffer boundaries */ |
| 552 | ber_dec_ctx_t _ber_dec_ctx; |
| 553 | } *notify; |
| 554 | /* |
| 555 | * This type is extensible, |
| 556 | * possible extensions are below. |
| 557 | */ |
| 558 | |
| 559 | /* Context for parsing across buffer boundaries */ |
| 560 | ber_dec_ctx_t _ber_dec_ctx; |
| 561 | } ActionItem_t; |
| 562 | |
| 563 | /*** <<< STAT-DEFS [ActionItem] >>> ***/ |
| 564 | |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 565 | static asn1_TYPE_member_t asn1_MBR_email[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 566 | { ATF_NOFLAGS, 0, 0, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 567 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (26 << 2)), |
| 568 | .tag_mode = 0, |
| 569 | .type = (void *)&asn1_DEF_VisibleString, |
| 570 | .memb_constraints = 0, /* Defer to actual type */ |
| 571 | .name = "" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 572 | }, |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 573 | }; |
| 574 | static ber_tlv_tag_t asn1_DEF_email_tags[] = { |
| 575 | (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)) |
| 576 | }; |
| 577 | static asn1_SET_OF_specifics_t asn1_DEF_email_specs = { |
| 578 | sizeof(struct email), |
| 579 | offsetof(struct email, _ber_dec_ctx), |
| 580 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 581 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 582 | asn1_TYPE_descriptor_t asn1_DEF_email = { |
| 583 | "email", |
| 584 | SET_OF_constraint, |
| 585 | SET_OF_decode_ber, |
| 586 | SET_OF_encode_der, |
| 587 | SET_OF_print, |
| 588 | SET_OF_free, |
| 589 | 0, /* Use generic outmost tag fetcher */ |
| 590 | asn1_DEF_email_tags, |
| 591 | sizeof(asn1_DEF_email_tags) |
| 592 | /sizeof(asn1_DEF_email_tags[0]), /* 1 */ |
| 593 | 1, /* Tags to skip */ |
| 594 | 1, /* Whether CONSTRUCTED */ |
| 595 | asn1_MBR_email, |
| 596 | 1, /* Single element */ |
| 597 | &asn1_DEF_email_specs /* Additional specs */ |
| 598 | }; |
| 599 | |
| 600 | static asn1_TYPE_member_t asn1_MBR_notify[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 601 | { ATF_NOFLAGS, 0, offsetof(struct notify, critical), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 602 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), |
| 603 | .tag_mode = 0, |
| 604 | .type = (void *)&asn1_DEF_BOOLEAN, |
| 605 | .memb_constraints = 0, /* Defer to actual type */ |
| 606 | .name = "critical" |
| 607 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 608 | { ATF_NOFLAGS, 0, offsetof(struct notify, email), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 609 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), |
| 610 | .tag_mode = 0, |
| 611 | .type = (void *)&asn1_DEF_email, |
| 612 | .memb_constraints = 0, /* Defer to actual type */ |
| 613 | .name = "email" |
| 614 | }, |
| 615 | }; |
| 616 | static ber_tlv_tag_t asn1_DEF_notify_tags[] = { |
| 617 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 618 | }; |
| 619 | static asn1_TYPE_tag2member_t asn1_DEF_notify_tag2el[] = { |
| 620 | { (ASN_TAG_CLASS_UNIVERSAL | (1 << 2)), 0, 0, 0 }, /* critical at 61 */ |
| 621 | { (ASN_TAG_CLASS_UNIVERSAL | (17 << 2)), 1, 0, 0 }, /* email at 62 */ |
| 622 | }; |
| 623 | static asn1_SEQUENCE_specifics_t asn1_DEF_notify_specs = { |
| 624 | sizeof(struct notify), |
| 625 | offsetof(struct notify, _ber_dec_ctx), |
| 626 | asn1_DEF_notify_tag2el, |
| 627 | 2, /* Count of tags in the map */ |
| 628 | 1, /* Start extensions */ |
| 629 | 3 /* Stop extensions */ |
| 630 | }; |
vlm | 1dc848e | 2004-09-07 06:44:29 +0000 | [diff] [blame] | 631 | static /* Use -fall-defs-global to expose */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 632 | asn1_TYPE_descriptor_t asn1_DEF_notify = { |
| 633 | "notify", |
| 634 | SEQUENCE_constraint, |
| 635 | SEQUENCE_decode_ber, |
| 636 | SEQUENCE_encode_der, |
| 637 | SEQUENCE_print, |
| 638 | SEQUENCE_free, |
| 639 | 0, /* Use generic outmost tag fetcher */ |
| 640 | asn1_DEF_notify_tags, |
| 641 | sizeof(asn1_DEF_notify_tags) |
| 642 | /sizeof(asn1_DEF_notify_tags[0]), /* 1 */ |
| 643 | 1, /* Tags to skip */ |
| 644 | 1, /* Whether CONSTRUCTED */ |
| 645 | asn1_MBR_notify, |
| 646 | 2, /* Elements count */ |
| 647 | &asn1_DEF_notify_specs /* Additional specs */ |
| 648 | }; |
| 649 | |
| 650 | static asn1_TYPE_member_t asn1_MBR_ActionItem[] = { |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 651 | { ATF_NOFLAGS, 0, offsetof(struct ActionItem, accept_as), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 652 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), |
| 653 | .tag_mode = 0, |
| 654 | .type = (void *)&asn1_DEF_ENUMERATED, |
| 655 | .memb_constraints = 0, /* Defer to actual type */ |
| 656 | .name = "accept-as" |
| 657 | }, |
vlm | ddd5a7d | 2004-09-10 09:18:20 +0000 | [diff] [blame^] | 658 | { ATF_POINTER, 1, offsetof(struct ActionItem, notify), |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 659 | .tag = (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), |
| 660 | .tag_mode = 0, |
| 661 | .type = (void *)&asn1_DEF_notify, |
| 662 | .memb_constraints = 0, /* Defer to actual type */ |
| 663 | .name = "notify" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 664 | }, |
| 665 | }; |
| 666 | static ber_tlv_tag_t asn1_DEF_ActionItem_tags[] = { |
| 667 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 668 | }; |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 669 | static asn1_TYPE_tag2member_t asn1_DEF_ActionItem_tag2el[] = { |
vlm | c8aeab4 | 2004-06-14 13:09:45 +0000 | [diff] [blame] | 670 | { (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)), 0, 0, 0 }, /* accept-as at 55 */ |
| 671 | { (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)), 1, 0, 0 }, /* notify at 61 */ |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 672 | }; |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 673 | static asn1_SEQUENCE_specifics_t asn1_DEF_ActionItem_specs = { |
| 674 | sizeof(struct ActionItem), |
| 675 | offsetof(struct ActionItem, _ber_dec_ctx), |
vlm | 35efd1b | 2004-06-06 07:20:52 +0000 | [diff] [blame] | 676 | asn1_DEF_ActionItem_tag2el, |
| 677 | 2, /* Count of tags in the map */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 678 | 1, /* Start extensions */ |
| 679 | 3 /* Stop extensions */ |
| 680 | }; |
| 681 | asn1_TYPE_descriptor_t asn1_DEF_ActionItem = { |
| 682 | "ActionItem", |
| 683 | SEQUENCE_constraint, |
| 684 | SEQUENCE_decode_ber, |
| 685 | SEQUENCE_encode_der, |
| 686 | SEQUENCE_print, |
| 687 | SEQUENCE_free, |
| 688 | 0, /* Use generic outmost tag fetcher */ |
| 689 | asn1_DEF_ActionItem_tags, |
| 690 | sizeof(asn1_DEF_ActionItem_tags) |
vlm | 6e73a04 | 2004-08-11 07:17:22 +0000 | [diff] [blame] | 691 | /sizeof(asn1_DEF_ActionItem_tags[0]), /* 1 */ |
vlm | 3df7966 | 2004-06-28 21:13:22 +0000 | [diff] [blame] | 692 | 1, /* Tags to skip */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 693 | 1, /* Whether CONSTRUCTED */ |
vlm | 21e4600 | 2004-08-20 13:36:32 +0000 | [diff] [blame] | 694 | asn1_MBR_ActionItem, |
| 695 | 2, /* Elements count */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 696 | &asn1_DEF_ActionItem_specs /* Additional specs */ |
| 697 | }; |
| 698 | |