epan/dissectors/pidl/ C99 drsuapi
[wireshark-sm.git] / epan / dissectors / asn1 / crmf / packet-crmf-template.c
blob7d3dbef2dc50f60c6f430a73ab1b7f25b9616161
1 /* packet-crmf.c
2 * Routines for RFC2511 Certificate Request Message Format 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 <wsutil/array.h>
19 #include "packet-ber.h"
20 #include "packet-crmf.h"
21 #include "packet-cms.h"
22 #include "packet-pkix1explicit.h"
23 #include "packet-pkix1implicit.h"
25 #define PNAME "Certificate Request Message Format"
26 #define PSNAME "CRMF"
27 #define PFNAME "crmf"
29 void proto_register_crmf(void);
30 void proto_reg_handoff_crmf(void);
32 /* Initialize the protocol and registered fields */
33 static int proto_crmf;
34 static int hf_crmf_type_oid;
35 #include "packet-crmf-hf.c"
37 /* Initialize the subtree pointers */
38 #include "packet-crmf-ett.c"
39 #include "packet-crmf-fn.c"
42 /*--- proto_register_crmf ----------------------------------------------*/
43 void proto_register_crmf(void) {
45 /* List of fields */
46 static hf_register_info hf[] = {
47 { &hf_crmf_type_oid,
48 { "Type", "crmf.type.oid",
49 FT_STRING, BASE_NONE, NULL, 0,
50 "Type of AttributeTypeAndValue", HFILL }},
51 #include "packet-crmf-hfarr.c"
54 /* List of subtrees */
55 static int *ett[] = {
56 #include "packet-crmf-ettarr.c"
59 /* Register protocol */
60 proto_crmf = proto_register_protocol(PNAME, PSNAME, PFNAME);
62 /* Register fields and subtrees */
63 proto_register_field_array(proto_crmf, hf, array_length(hf));
64 proto_register_subtree_array(ett, array_length(ett));
69 /*--- proto_reg_handoff_crmf -------------------------------------------*/
70 void proto_reg_handoff_crmf(void) {
71 oid_add_from_string("id-pkip","1.3.6.1.5.5.7.5");
72 oid_add_from_string("id-regCtrl","1.3.6.1.5.5.7.5.1");
73 oid_add_from_string("id-regInfo","1.3.6.1.5.5.7.5.2");
74 #include "packet-crmf-dis-tab.c"