blob: ed908b563c0ad717732385ce6f8b706c135000dc [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#include <ENUMERATED.h>
6
7/*
8 * ENUMERATED basic type description.
9 */
10static ber_tlv_tag_t asn1_DEF_ENUMERATED_tags[] = {
11 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
12};
13asn1_TYPE_descriptor_t asn1_DEF_ENUMERATED = {
14 "ENUMERATED",
15 asn_generic_no_constraint,
16 INTEGER_decode_ber, /* Implemented in terms of INTEGER */
17 INTEGER_encode_der, /* Implemented in terms of INTEGER */
18 INTEGER_print, /* Implemented in terms of INTEGER */
19 INTEGER_free, /* Implemented in terms of INTEGER */
20 0, /* Use generic outmost tag fetcher */
21 asn1_DEF_ENUMERATED_tags,
vlm72425de2004-09-13 08:31:01 +000022 sizeof(asn1_DEF_ENUMERATED_tags) / sizeof(asn1_DEF_ENUMERATED_tags[0]),
23 asn1_DEF_ENUMERATED_tags, /* Same as above */
24 sizeof(asn1_DEF_ENUMERATED_tags) / sizeof(asn1_DEF_ENUMERATED_tags[0]),
vlmb42843a2004-06-05 08:17:50 +000025 0, /* Primitive */
vlme413c122004-08-20 13:23:42 +000026 0, 0, /* No members */
vlmb42843a2004-06-05 08:17:50 +000027 0 /* No specifics */
vlmfa67ddc2004-06-03 03:38:44 +000028};
29