Harald Welte | 92c45f3 | 2010-06-12 18:59:38 +0200 | [diff] [blame] | 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 <T61String.h> |
| 7 | |
| 8 | /* |
| 9 | * T61String basic type description. |
| 10 | */ |
Harald Welte | 41b85d5 | 2015-08-31 08:56:53 +0200 | [diff] [blame] | 11 | static const ber_tlv_tag_t asn_DEF_T61String_tags[] = { |
Harald Welte | 92c45f3 | 2010-06-12 18:59:38 +0200 | [diff] [blame] | 12 | (ASN_TAG_CLASS_UNIVERSAL | (20 << 2)), /* [UNIVERSAL 20] IMPLICIT ...*/ |
| 13 | (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */ |
| 14 | }; |
| 15 | asn_TYPE_descriptor_t asn_DEF_T61String = { |
| 16 | "T61String", |
| 17 | "T61String", |
| 18 | OCTET_STRING_free, |
| 19 | OCTET_STRING_print, /* non-ascii string */ |
| 20 | asn_generic_unknown_constraint, |
| 21 | OCTET_STRING_decode_ber, /* Implemented in terms of OCTET STRING */ |
| 22 | OCTET_STRING_encode_der, |
| 23 | OCTET_STRING_decode_xer_hex, |
| 24 | OCTET_STRING_encode_xer, |
Harald Welte | ec0e217 | 2010-07-20 00:03:44 +0200 | [diff] [blame] | 25 | OCTET_STRING_decode_uper, |
| 26 | OCTET_STRING_encode_uper, |
Harald Welte | 41b85d5 | 2015-08-31 08:56:53 +0200 | [diff] [blame] | 27 | OCTET_STRING_decode_aper, |
| 28 | OCTET_STRING_encode_aper, |
Harald Welte | 92c45f3 | 2010-06-12 18:59:38 +0200 | [diff] [blame] | 29 | 0, /* Use generic outmost tag fetcher */ |
| 30 | asn_DEF_T61String_tags, |
| 31 | sizeof(asn_DEF_T61String_tags) |
| 32 | / sizeof(asn_DEF_T61String_tags[0]) - 1, |
| 33 | asn_DEF_T61String_tags, |
| 34 | sizeof(asn_DEF_T61String_tags) |
| 35 | / sizeof(asn_DEF_T61String_tags[0]), |
| 36 | 0, /* No PER visible constraints */ |
| 37 | 0, 0, /* No members */ |
| 38 | 0 /* No specifics */ |
| 39 | }; |
| 40 | |