2 * Copyright (c) 2003, 2004 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 <ObjectDescriptor.h>
9 * ObjectDescriptor basic type description.
11 static const ber_tlv_tag_t asn_DEF_ObjectDescriptor_tags[] = {
12 (ASN_TAG_CLASS_UNIVERSAL | (7 << 2)), /* [UNIVERSAL 7] IMPLICIT ... */
13 (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)) /* ... OCTET STRING */
15 asn_TYPE_operation_t asn_OP_ObjectDescriptor = {
17 #if !defined(ASN_DISABLE_PRINT_SUPPORT)
18 OCTET_STRING_print_utf8, /* Treat as ASCII subset (it's not) */
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_utf8,
32 OCTET_STRING_encode_xer_utf8,
36 #endif /* !defined(ASN_DISABLE_XER_SUPPORT) */
37 #if !defined(ASN_DISABLE_JER_SUPPORT)
38 OCTET_STRING_encode_jer_utf8,
41 #endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
42 #if !defined(ASN_DISABLE_OER_SUPPORT)
48 #endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
49 #if !defined(ASN_DISABLE_UPER_SUPPORT)
50 OCTET_STRING_decode_uper,
51 OCTET_STRING_encode_uper,
55 #endif /* !defined(ASN_DISABLE_UPER_SUPPORT) */
56 #if !defined(ASN_DISABLE_APER_SUPPORT)
57 OCTET_STRING_decode_aper,
58 OCTET_STRING_encode_aper,
62 #endif /* !defined(ASN_DISABLE_APER_SUPPORT) */
63 #if !defined(ASN_DISABLE_RFILL_SUPPORT)
64 0, /* Not supported for ObjectDescriptor */
67 #endif /* !defined(ASN_DISABLE_RFILL_SUPPORT) */
68 0 /* Use generic outmost tag fetcher */
70 asn_TYPE_descriptor_t asn_DEF_ObjectDescriptor = {
73 &asn_OP_ObjectDescriptor,
74 asn_DEF_ObjectDescriptor_tags,
75 sizeof(asn_DEF_ObjectDescriptor_tags)
76 / sizeof(asn_DEF_ObjectDescriptor_tags[0]) - 1,
77 asn_DEF_ObjectDescriptor_tags,
78 sizeof(asn_DEF_ObjectDescriptor_tags)
79 / sizeof(asn_DEF_ObjectDescriptor_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 */