2 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
5 #include <asn_internal.h>
9 * T61String basic type description.
11 static const ber_tlv_tag_t asn_DEF_T61String_tags[] = {
12 (ASN_TAG_CLASS_UNIVERSAL | (20 << 2)), /* [UNIVERSAL 20] IMPLICIT ...*/
13 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */
15 asn_TYPE_operation_t asn_OP_T61String = {
17 OCTET_STRING_print, /* non-ascii string */
19 OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
20 OCTET_STRING_encode_der,
21 OCTET_STRING_decode_xer_hex,
22 OCTET_STRING_encode_xer,
23 #ifdef ASN_DISABLE_OER_SUPPORT
27 OCTET_STRING_decode_oer,
28 OCTET_STRING_encode_oer,
29 #endif /* ASN_DISABLE_OER_SUPPORT */
30 #ifdef ASN_DISABLE_PER_SUPPORT
36 OCTET_STRING_decode_uper,
37 OCTET_STRING_encode_uper,
38 OCTET_STRING_decode_aper,
39 OCTET_STRING_encode_aper,
40 #endif /* ASN_DISABLE_PER_SUPPORT */
41 OCTET_STRING_random_fill,
42 0 /* Use generic outmost tag fetcher */
44 asn_TYPE_descriptor_t asn_DEF_T61String = {
48 asn_DEF_T61String_tags,
49 sizeof(asn_DEF_T61String_tags)
50 / sizeof(asn_DEF_T61String_tags[0]) - 1,
51 asn_DEF_T61String_tags,
52 sizeof(asn_DEF_T61String_tags)
53 / sizeof(asn_DEF_T61String_tags[0]),
54 { 0, 0, asn_generic_unknown_constraint },
55 0, 0, /* No members */