blob: 0e87d12587784b6a316b9acc1fa7bb37c5dc53f5 [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 */
Lev Walkina9cc46e2004-09-22 16:06:28 +00005#include <asn_internal.h>
Lev Walkinf15320b2004-06-03 03:38:44 +00006#include <GeneralString.h>
7
8/*
9 * GeneralString basic type description.
10 */
Wim Lewis18c2ec92014-07-29 11:30:10 -070011static const ber_tlv_tag_t asn_DEF_GeneralString_tags[] = {
Lev Walkin188ed2c2004-09-13 08:31:01 +000012 (ASN_TAG_CLASS_UNIVERSAL | (27 << 2)), /* [UNIVERSAL 27] IMPLICIT ...*/
13 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */
Lev Walkinf15320b2004-06-03 03:38:44 +000014};
Lev Walkin5e033762004-09-29 13:26:15 +000015asn_TYPE_descriptor_t asn_DEF_GeneralString = {
Lev Walkinf15320b2004-06-03 03:38:44 +000016 "GeneralString",
Lev Walkindc06f6b2004-10-20 15:50:55 +000017 "GeneralString",
Lev Walkina9cc46e2004-09-22 16:06:28 +000018 OCTET_STRING_free,
19 OCTET_STRING_print, /* non-ascii string */
Lev Walkinf15320b2004-06-03 03:38:44 +000020 asn_generic_unknown_constraint,
21 OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */
Lev Walkindc06f6b2004-10-20 15:50:55 +000022 OCTET_STRING_encode_der,
23 OCTET_STRING_decode_xer_hex,
24 OCTET_STRING_encode_xer,
Lev Walkincc159472017-07-06 08:26:36 -070025#ifdef ASN_DISABLE_OER_SUPPORT
26 0,
27 0,
28#else
Lev Walkin1d76f3c2017-07-25 07:58:05 -070029 OCTET_STRING_decode_oer,
30 OCTET_STRING_encode_oer,
Lev Walkincc159472017-07-06 08:26:36 -070031#endif /* ASN_DISABLE_OER_SUPPORT */
Lev Walkinb33425f2017-07-14 14:59:52 +040032#ifdef ASN_DISABLE_PER_SUPPORT
33 0,
34 0,
35#else
36 OCTET_STRING_decode_uper, /* Implemented in terms of OCTET STRING */
37 OCTET_STRING_encode_uper,
38#endif /* ASN_DISABLE_PER_SUPPORT */
Lev Walkinf15320b2004-06-03 03:38:44 +000039 0, /* Use generic outmost tag fetcher */
Lev Walkin5e033762004-09-29 13:26:15 +000040 asn_DEF_GeneralString_tags,
41 sizeof(asn_DEF_GeneralString_tags)
42 / sizeof(asn_DEF_GeneralString_tags[0]) - 1,
43 asn_DEF_GeneralString_tags,
44 sizeof(asn_DEF_GeneralString_tags)
45 / sizeof(asn_DEF_GeneralString_tags[0]),
Lev Walkin76780762017-07-07 10:07:30 -070046 0, /* No OER visible constraints */
Lev Walkin59b176e2005-11-26 11:25:14 +000047 0, /* No PER visible constraints */
Lev Walkin449f8322004-08-20 13:23:42 +000048 0, 0, /* No members */
Lev Walkind9bd7752004-06-05 08:17:50 +000049 0 /* No specifics */
Lev Walkinf15320b2004-06-03 03:38:44 +000050};
51