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>
6 #include <GraphicString.h>
9 * GraphicString basic type description.
11 static const ber_tlv_tag_t asn_DEF_GraphicString_tags[] = {
12 (ASN_TAG_CLASS_UNIVERSAL | (25 << 2)), /* [UNIVERSAL 25] IMPLICIT ...*/
13 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */
15 asn_TYPE_operation_t asn_OP_GraphicString = {
17 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
18 OCTET_STRING_print, /* non-ascii string */
21 #endif /* !defined(ASN_DISABLE_PRINT_SUPPORT) */
23 #if !defined(ASN_DISABLE_BER_SUPPORT)
24 OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
25 OCTET_STRING_encode_der,
29 #endif /* !defined(ASN_DISABLE_BER_SUPPORT) */
30 #if !defined(ASN_DISABLE_XER_SUPPORT)
31 OCTET_STRING_decode_xer_hex,
32 OCTET_STRING_encode_xer, /* Can't expect it to be ASCII/UTF8 */
36 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
37 #if !defined(ASN_DISABLE_JER_SUPPORT)
38 OCTET_STRING_encode_jer, /* Can't expect it to be ASCII/UTF8 */
41 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
42 #if !defined(ASN_DISABLE_OER_SUPPORT)
43 OCTET_STRING_decode_oer,
44 OCTET_STRING_encode_oer,
48 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49 #if !defined(ASN_DISABLE_UPER_SUPPORT)
50 OCTET_STRING_decode_uper, /* Implemented in terms of OCTET STRING */
51 OCTET_STRING_encode_uper,
55 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
56 #if !defined(ASN_DISABLE_APER_SUPPORT)
57 OCTET_STRING_decode_aper, /* Implemented in terms of OCTET STRING */
58 OCTET_STRING_encode_aper,
62 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
63 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
64 OCTET_STRING_random_fill,
67 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
68 0 /* Use generic outmost tag fetcher */
70 asn_TYPE_descriptor_t asn_DEF_GraphicString = {
73 &asn_OP_GraphicString,
74 asn_DEF_GraphicString_tags,
75 sizeof(asn_DEF_GraphicString_tags)
76 / sizeof(asn_DEF_GraphicString_tags[0]) - 1,
77 asn_DEF_GraphicString_tags,
78 sizeof(asn_DEF_GraphicString_tags)
79 / sizeof(asn_DEF_GraphicString_tags[0]),
81 #if !defined(ASN_DISABLE_OER_SUPPORT)
83 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
84 #if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
86 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
87 asn_generic_unknown_constraint
89 0, 0, /* No members */