vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 5 | #include <asn_internal.h> |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 6 | #include <ENUMERATED.h> |
| 7 | |
| 8 | /* |
| 9 | * ENUMERATED basic type description. |
| 10 | */ |
| 11 | static ber_tlv_tag_t asn1_DEF_ENUMERATED_tags[] = { |
| 12 | (ASN_TAG_CLASS_UNIVERSAL | (10 << 2)) |
| 13 | }; |
| 14 | asn1_TYPE_descriptor_t asn1_DEF_ENUMERATED = { |
| 15 | "ENUMERATED", |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 16 | INTEGER_free, /* Implemented in terms of INTEGER */ |
| 17 | INTEGER_print, /* Implemented in terms of INTEGER */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 18 | asn_generic_no_constraint, |
| 19 | INTEGER_decode_ber, /* Implemented in terms of INTEGER */ |
| 20 | INTEGER_encode_der, /* Implemented in terms of INTEGER */ |
vlm | 39ba4c4 | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 21 | 0, /* Not implemented yet */ |
| 22 | INTEGER_encode_xer, /* Implemented in terms of INTEGER */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | 0, /* Use generic outmost tag fetcher */ |
| 24 | asn1_DEF_ENUMERATED_tags, |
vlm | 72425de | 2004-09-13 08:31:01 +0000 | [diff] [blame] | 25 | sizeof(asn1_DEF_ENUMERATED_tags) / sizeof(asn1_DEF_ENUMERATED_tags[0]), |
| 26 | asn1_DEF_ENUMERATED_tags, /* Same as above */ |
| 27 | sizeof(asn1_DEF_ENUMERATED_tags) / sizeof(asn1_DEF_ENUMERATED_tags[0]), |
vlm | b42843a | 2004-06-05 08:17:50 +0000 | [diff] [blame] | 28 | 0, /* Primitive */ |
vlm | e413c12 | 2004-08-20 13:23:42 +0000 | [diff] [blame] | 29 | 0, 0, /* No members */ |
vlm | b42843a | 2004-06-05 08:17:50 +0000 | [diff] [blame] | 30 | 0 /* No specifics */ |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 31 | }; |
| 32 | |