Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / acp133 / packet-acp133-template.c
blobdfa48271812531de42bb83258395222fac364869
1 /* packet-acp133.c
2 * Routines for ACP133 specific syntaxes in X.500 packet dissection
3 * Graeme Lunt 2005
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #include "config.h"
14 #include <epan/packet.h>
15 #include <epan/asn1.h>
16 #include <epan/oids.h>
17 #include <wsutil/array.h>
19 #include "packet-ber.h"
21 #include "packet-p1.h"
22 #include "packet-x509af.h"
23 #include "packet-x509ce.h"
24 #include "packet-x509if.h"
25 #include "packet-x509sat.h"
27 #include "packet-acp133.h"
29 #define PNAME "ACP133 Attribute Syntaxes"
30 #define PSNAME "ACP133"
31 #define PFNAME "acp133"
33 void proto_register_acp133(void);
34 void proto_reg_handoff_acp133(void);
36 /* Initialize the protocol and registered fields */
37 static int proto_acp133;
40 #include "packet-acp133-hf.c"
42 /* Initialize the subtree pointers */
43 static int ett_acp133;
44 #include "packet-acp133-ett.c"
46 #include "packet-acp133-fn.c"
49 /*--- proto_register_acp133 -------------------------------------------*/
50 void proto_register_acp133(void) {
52 /* List of fields */
53 static hf_register_info hf[] =
55 #include "packet-acp133-hfarr.c"
58 /* List of subtrees */
59 static int *ett[] = {
60 &ett_acp133,
61 #include "packet-acp133-ettarr.c"
64 /* Register protocol */
65 proto_acp133 = proto_register_protocol(PNAME, PSNAME, PFNAME);
67 /* Register fields and subtrees */
68 proto_register_field_array(proto_acp133, hf, array_length(hf));
69 proto_register_subtree_array(ett, array_length(ett));
74 /*--- proto_reg_handoff_acp133 --- */
75 void proto_reg_handoff_acp133(void) {
77 #include "packet-acp133-dis-tab.c"
79 /* X.402 Object Classes */
80 oid_add_from_string("id-oc-mhs-distribution-list","2.6.5.1.0");
81 oid_add_from_string("id-oc-mhs-message-store","2.6.5.1.1");
82 oid_add_from_string("id-oc-mhs-message-transfer-agent","2.6.5.1.2");
83 oid_add_from_string("id-oc-mhs-user","2.6.5.1.3");
85 /* SDN.701 Object Classes */
86 oid_add_from_string("id-oc-secure-user","2.16.840.1.101.2.1.4.13");
87 oid_add_from_string("id-oc-ukms","2.16.840.1.101.2.1.4.16");
89 /* ACP133 Object Classes */
90 oid_add_from_string("id-oc-plaData","2.16.840.1.101.2.2.3.26");
91 oid_add_from_string("id-oc-cadACP127","2.16.840.1.101.2.2.3.28");
92 oid_add_from_string("id-oc-mLA","2.16.840.1.101.2.2.3.31");
93 oid_add_from_string("id-oc-orgACP127","2.16.840.1.101.2.2.3.34");
94 oid_add_from_string("id-oc-plaCollectiveACP127","2.16.840.1.101.2.2.3.35");
95 oid_add_from_string("id-oc-routingIndicator","2.16.840.1.101.2.2.3.37");
96 oid_add_from_string("id-oc-sigintPLA","2.16.840.1.101.2.2.3.38");
97 oid_add_from_string("id-oc-sIPLA","2.16.840.1.101.2.2.3.39");
98 oid_add_from_string("id-oc-spotPLA","2.16.840.1.101.2.2.3.40");
99 oid_add_from_string("id-oc-taskForceACP127","2.16.840.1.101.2.2.3.41");
100 oid_add_from_string("id-oc-tenantACP127","2.16.840.1.101.2.2.3.42");
101 oid_add_from_string("id-oc-plaACP127","2.16.840.1.101.2.2.3.47");
102 oid_add_from_string("id-oc-aliasCommonName","2.16.840.1.101.2.2.3.52");
103 oid_add_from_string("id-oc-aliasOrganizationalUnit","2.16.840.1.101.2.2.3.53");
104 oid_add_from_string("id-oc-distributionCodesHandled","2.16.840.1.101.2.2.3.54");
105 oid_add_from_string("id-oc-distributionCodeDescription","2.16.840.1.101.2.2.3.55");
106 oid_add_from_string("id-oc-plaUser","2.16.840.1.101.2.2.3.56");
107 oid_add_from_string("id-oc-addressList","2.16.840.1.101.2.2.3.57");
108 oid_add_from_string("id-oc-altSpellingACP127","2.16.840.1.101.2.2.3.58");
109 oid_add_from_string("id-oc-messagingGateway","2.16.840.1.101.2.2.3.59");
110 oid_add_from_string("id-oc-network","2.16.840.1.101.2.2.3.60");
111 oid_add_from_string("id-oc-networkInstructions","2.16.840.1.101.2.2.3.61");
112 oid_add_from_string("id-oc-otherContactInformation","2.16.840.1.101.2.2.3.62");
113 oid_add_from_string("id-oc-releaseAuthorityPerson","2.16.840.1.101.2.2.3.63");
114 oid_add_from_string("id-oc-mLAgent","2.16.840.1.101.2.2.3.64");
115 oid_add_from_string("id-oc-releaseAuthorityPersonA","2.16.840.1.101.2.2.3.65");
116 oid_add_from_string("id-oc-securePkiUser","2.16.840.1.101.2.2.3.66");
117 oid_add_from_string("id-oc-dSSCSPLA","2.16.840.1.101.2.2.3.67");
118 oid_add_from_string("id-oc-aCPNetworkEdB","2.16.840.1.101.2.2.3.68");
119 oid_add_from_string("id-oc-aCPNetworkInstructionsEdB","2.16.840.1.101.2.2.3.69");
120 oid_add_from_string("id-oc-aCPAddressList","2.16.840.1.101.2.2.3.70");
121 oid_add_from_string("id-oc-aCPAliasCommonName","2.16.840.1.101.2.2.3.71");
122 oid_add_from_string("id-oc-aCPAliasOrganizationalUnit","2.16.840.1.101.2.2.3.72");
123 oid_add_from_string("id-oc-aCPDevice","2.16.840.1.101.2.2.3.73");
124 oid_add_from_string("id-oc-aCPDistributionCodeDescription","2.16.840.1.101.2.2.3.74");
125 oid_add_from_string("id-oc-aCPGroupOfNames","2.16.840.1.101.2.2.3.75");
126 oid_add_from_string("id-oc-aCPLocality","2.16.840.1.101.2.2.3.76");
127 oid_add_from_string("id-oc-aCPOrganization","2.16.840.1.101.2.2.3.77");
128 oid_add_from_string("id-oc-aCPOrganizationalPerson","2.16.840.1.101.2.2.3.78");
129 oid_add_from_string("id-oc-aCPOrganizationalRole","2.16.840.1.101.2.2.3.79");
130 oid_add_from_string("id-oc-aCPOrganizationalUnit","2.16.840.1.101.2.2.3.80");
131 oid_add_from_string("id-oc-aCPDistributionCodesHandled","2.16.840.1.101.2.2.3.81");
132 oid_add_from_string("id-oc-aCPMhsCapabilitiesInformation","2.16.840.1.101.2.2.3.82");
133 oid_add_from_string("id-oc-aCPOtherContactInformation","2.16.840.1.101.2.2.3.83");
134 oid_add_from_string("id-oc-aCPPlaUser","2.16.840.1.101.2.2.3.84");
135 oid_add_from_string("id-oc-aCPCRLDistributionPoint","2.16.840.1.101.2.2.3.85");
136 oid_add_from_string("id-oc-aCPSecurePKIUser","2.16.840.1.101.2.2.3.86");
137 oid_add_from_string("id-oc-aCPAltSpellingACP127","2.16.840.1.101.2.2.3.87");
138 oid_add_from_string("id-oc-aCPCadACP127","2.16.840.1.101.2.2.3.88");
139 oid_add_from_string("id-oc-aCPDSSCSPLA","2.16.840.1.101.2.2.3.89");
140 oid_add_from_string("id-oc-aCPOrgACP127","2.16.840.1.101.2.2.3.90");
141 oid_add_from_string("id-oc-aCPPLACollectiveACP127","2.16.840.1.101.2.2.3.91");
142 oid_add_from_string("id-oc-aCPRoutingIndicator","2.16.840.1.101.2.2.3.92");
143 oid_add_from_string("id-oc-aCPSigIntPLA","2.16.840.1.101.2.2.3.93");
144 oid_add_from_string("id-oc-aCPSIPLA","2.16.840.1.101.2.2.3.94");
145 oid_add_from_string("id-oc-aCPSpotPLA","2.16.840.1.101.2.2.3.95");
146 oid_add_from_string("id-oc-aCPTaskForceACP127","2.16.840.1.101.2.2.3.96");
147 oid_add_from_string("id-oc-aCPTenantACP127","2.16.840.1.101.2.2.3.97");
148 oid_add_from_string("id-oc-aCPPlaACP127","2.16.840.1.101.2.2.3.98");
149 oid_add_from_string("id-oc-aCPPlaData","2.16.840.1.101.2.2.3.99");
150 oid_add_from_string("id-oc-aCPEntryAdmin","2.16.840.1.101.2.2.3.102");
151 oid_add_from_string("id-oc-aCPOrganizationalLocation","2.16.840.1.101.2.2.3.103");
152 oid_add_from_string("id-oc-aCPEntryCharacteristics","2.16.840.1.101.2.2.3.104");
153 oid_add_from_string("id-oc-aCPPrivilege","2.16.840.1.101.2.2.3.105");
155 /* gateway types */
156 oid_add_from_string("acp120-acp127","2.16.840.1.101.2.2.5.0");
157 oid_add_from_string("acp120-janap128","2.16.840.1.101.2.2.5.1");
158 oid_add_from_string("acp120-mhs","2.16.840.1.101.2.2.5.2");
159 oid_add_from_string("acp120-mmhs","2.16.840.1.101.2.2.5.3");
160 oid_add_from_string("acp120-rfc822","2.16.840.1.101.2.2.5.4");
161 oid_add_from_string("boundaryMTA","2.16.840.1.101.2.2.5.5");
162 oid_add_from_string("mmhs-mhs","2.16.840.1.101.2.2.5.6");
163 oid_add_from_string("mmhs-rfc822","2.16.840.1.101.2.2.5.7");
164 oid_add_from_string("mta-acp127","2.16.840.1.101.2.2.5.8");