blob: 3fff3682911cc5dc88c073f6459a1eb081581227 [file] [log] [blame]
Lev Walkinf15320b2004-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 */
Lev Walkind9bd7752004-06-05 08:17:50 +000024 0, /* Primitive */
25 0 /* No specifics */
Lev Walkinf15320b2004-06-03 03:38:44 +000026};
27