Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / asn1 / x509sat / packet-x509sat-template.c
blob41e9b402ed49309d60c995b858781f49e124dd8f
1 /* packet-x509sat.c
2 * Routines for X.509 Selected Attribute Types packet dissection
3 * Ronnie Sahlberg 2004
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/oids.h>
16 #include <epan/asn1.h>
17 #include <epan/proto_data.h>
18 #include <epan/strutil.h>
19 #include <wsutil/array.h>
21 #include "packet-ber.h"
22 #include "packet-p1.h"
23 #include "packet-x509sat.h"
24 #include "packet-x509if.h"
26 #define PNAME "X.509 Selected Attribute Types"
27 #define PSNAME "X509SAT"
28 #define PFNAME "x509sat"
30 void proto_register_x509sat(void);
31 void proto_reg_handoff_x509sat(void);
33 /* Initialize the protocol and registered fields */
34 static int proto_x509sat;
35 #include "packet-x509sat-hf.c"
37 /* Initialize the subtree pointers */
38 #include "packet-x509sat-ett.c"
40 #include "packet-x509sat-fn.c"
43 /*--- proto_register_x509sat ----------------------------------------------*/
44 void proto_register_x509sat(void) {
46 /* List of fields */
47 static hf_register_info hf[] = {
48 #include "packet-x509sat-hfarr.c"
51 /* List of subtrees */
52 static int *ett[] = {
53 #include "packet-x509sat-ettarr.c"
56 /* Register protocol */
57 proto_x509sat = proto_register_protocol(PNAME, PSNAME, PFNAME);
59 /* Register fields and subtrees */
60 proto_register_field_array(proto_x509sat, hf, array_length(hf));
61 proto_register_subtree_array(ett, array_length(ett));
63 #include "packet-x509sat-syn-reg.c"
68 /*--- proto_reg_handoff_x509sat -------------------------------------------*/
69 void proto_reg_handoff_x509sat(void) {
70 #include "packet-x509sat-dis-tab.c"
72 /* OBJECT CLASSES */
74 oid_add_from_string("top","2.5.6.0");
75 oid_add_from_string("alias","2.5.6.1");
76 oid_add_from_string("country","2.5.6.2");
77 oid_add_from_string("locality","2.5.6.3");
78 oid_add_from_string("organization","2.5.6.4");
79 oid_add_from_string("organizationalUnit","2.5.6.5");
80 oid_add_from_string("person","2.5.6.6");
81 oid_add_from_string("organizationalPerson","2.5.6.7");
82 oid_add_from_string("organizationalRole","2.5.6.8");
83 oid_add_from_string("groupOfNames","2.5.6.9");
84 oid_add_from_string("residentialPerson","2.5.6.10");
85 oid_add_from_string("applicationProcess","2.5.6.11");
86 oid_add_from_string("applicationEntity","2.5.6.12");
87 oid_add_from_string("dSA","2.5.6.13");
88 oid_add_from_string("device","2.5.6.14");
89 oid_add_from_string("strongAuthenticationUser","2.5.6.15");
90 oid_add_from_string("certificationAuthority","2.5.6.16");
91 oid_add_from_string("certificationAuthorityV2","2.5.6.16.2");
92 oid_add_from_string("groupOfUniqueNames","2.5.6.17");
93 oid_add_from_string("userSecurityInformation","2.5.6.18");
94 oid_add_from_string("cRLDistributionPoint","2.5.6.19");
95 oid_add_from_string("dmd","2.5.6.20");
96 oid_add_from_string("pkiUser","2.5.6.21");
97 oid_add_from_string("pkiCA","2.5.6.22");
99 oid_add_from_string("parent","2.5.6.28");
100 oid_add_from_string("child","2.5.6.29");
102 /* RFC 2247 */
103 oid_add_from_string("dcObject","1.3.6.1.4.1.1446.344");
104 oid_add_from_string("domain","0.9.2342.19200300.100.4.13");
106 /* RFC 2798 */
107 oid_add_from_string("inetOrgPerson","2.16.840.1.113730.3.2.2");