aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/ENUMERATED.c
blob: 9c8db298ebe5adf29882c0bb11458ff417842ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*-
 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
 * Redistribution and modifications are permitted subject to BSD license.
 */
#include <ENUMERATED.h>

/*
 * ENUMERATED basic type description.
 */
static ber_tlv_tag_t asn1_DEF_ENUMERATED_tags[] = {
	(ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
};
asn1_TYPE_descriptor_t asn1_DEF_ENUMERATED = {
	"ENUMERATED",
	asn_generic_no_constraint,
	INTEGER_decode_ber,		/* Implemented in terms of INTEGER */
	INTEGER_encode_der,		/* Implemented in terms of INTEGER */
	INTEGER_print,			/* Implemented in terms of INTEGER */
	INTEGER_free,			/* Implemented in terms of INTEGER */
	0, /* Use generic outmost tag fetcher */
	asn1_DEF_ENUMERATED_tags,
	sizeof(asn1_DEF_ENUMERATED_tags)/sizeof(asn1_DEF_ENUMERATED_tags[0]),
	0,	/* Primitive */
	0, 0,	/* No members */
	0	/* No specifics */
};