ISSUE ID:- RICAPP-216
[ric-app/bouncer.git] / Bouncer / e2sm_kpm / lib / GraphicString.c
1 /*-
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 <asn_internal.h>
6 #include <GraphicString.h>
7
8 /*
9  * GraphicString basic type description.
10  */
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 */
14 };
15 asn_TYPE_operation_t asn_OP_GraphicString = {
16         OCTET_STRING_free,
17         OCTET_STRING_print,         /* non-ascii string */
18         OCTET_STRING_compare,
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,        /* Can't expect it to be ASCII/UTF8 */
23 #ifdef  ASN_DISABLE_OER_SUPPORT
24         0,
25         0,
26 #else
27         OCTET_STRING_decode_oer,
28         OCTET_STRING_encode_oer,
29 #endif  /* ASN_DISABLE_OER_SUPPORT */
30 #ifdef  ASN_DISABLE_PER_SUPPORT
31         0,
32         0,
33         0,
34         0,
35 #else
36         OCTET_STRING_decode_uper,    /* Implemented in terms of OCTET STRING */
37         OCTET_STRING_encode_uper,
38         OCTET_STRING_decode_aper,    /* Implemented in terms of OCTET STRING */
39         OCTET_STRING_encode_aper,
40 #endif  /* ASN_DISABLE_PER_SUPPORT */
41         OCTET_STRING_random_fill,
42         0       /* Use generic outmost tag fetcher */
43 };
44 asn_TYPE_descriptor_t asn_DEF_GraphicString = {
45         "GraphicString",
46         "GraphicString",
47         &asn_OP_GraphicString,
48         asn_DEF_GraphicString_tags,
49         sizeof(asn_DEF_GraphicString_tags)
50           / sizeof(asn_DEF_GraphicString_tags[0]) - 1,
51         asn_DEF_GraphicString_tags,
52         sizeof(asn_DEF_GraphicString_tags)
53           / sizeof(asn_DEF_GraphicString_tags[0]),
54         { 0, 0, asn_generic_unknown_constraint },
55         0, 0,   /* No members */
56         0       /* No specifics */
57 };
58