blob: 1f1ae896108d31502f58a0918be9d9146ed5a85a [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,
22 sizeof(asn1_DEF_ENUMERATED_tags)/sizeof(asn1_DEF_ENUMERATED_tags[0]),
23 1, /* Single UNIVERSAL tag may be implicitly overriden */
24 0 /* Primitive */
25};
26