Lev Walkin | f15320b | 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 | */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 5 | #include <asn_internal.h> |
Lev Walkin | f15320b | 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", |
Lev Walkin | a9cc46e | 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 */ |
Lev Walkin | f15320b | 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 */ |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 21 | 0, /* Not implemented yet */ |
| 22 | INTEGER_encode_xer, /* Implemented in terms of INTEGER */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 23 | 0, /* Use generic outmost tag fetcher */ |
| 24 | asn1_DEF_ENUMERATED_tags, |
Lev Walkin | 188ed2c | 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]), |
Lev Walkin | d9bd775 | 2004-06-05 08:17:50 +0000 | [diff] [blame] | 28 | 0, /* Primitive */ |
Lev Walkin | 449f832 | 2004-08-20 13:23:42 +0000 | [diff] [blame] | 29 | 0, 0, /* No members */ |
Lev Walkin | d9bd775 | 2004-06-05 08:17:50 +0000 | [diff] [blame] | 30 | 0 /* No specifics */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 31 | }; |
| 32 | |