1 /* packet-wlancertextn.c
2 * Routines for Wireless Certificate Extension (RFC3770)
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
14 #include <epan/packet.h>
15 #include <epan/oids.h>
16 #include <epan/asn1.h>
18 #include <wsutil/array.h>
20 #include "packet-ber.h"
21 #include "packet-wlancertextn.h"
22 #include "packet-x509af.h"
23 #include "packet-x509ce.h"
24 #include "packet-x509sat.h"
26 #define PNAME "Wlan Certificate Extension"
27 #define PSNAME "WLANCERTEXTN"
28 #define PFNAME "wlancertextn"
30 void proto_register_wlancertextn(void);
31 void proto_reg_handoff_wlancertextn(void);
33 /* Initialize the protocol and registered fields */
34 static int proto_wlancertextn
;
35 #include "packet-wlancertextn-hf.c"
37 /* Initialize the subtree pointers */
38 #include "packet-wlancertextn-ett.c"
40 #include "packet-wlancertextn-fn.c"
43 /*--- proto_register_wlancertextn ----------------------------------------------*/
44 void proto_register_wlancertextn(void) {
47 static hf_register_info hf
[] = {
48 #include "packet-wlancertextn-hfarr.c"
51 /* List of subtrees */
53 #include "packet-wlancertextn-ettarr.c"
56 /* Register protocol */
57 proto_wlancertextn
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
59 /* Register fields and subtrees */
60 proto_register_field_array(proto_wlancertextn
, hf
, array_length(hf
));
61 proto_register_subtree_array(ett
, array_length(ett
));
66 /*--- proto_reg_handoff_wlancertextn -------------------------------------------*/
67 void proto_reg_handoff_wlancertextn(void) {
68 #include "packet-wlancertextn-dis-tab.c"
69 oid_add_from_string("id-kp-eapOverPPP","1.3.6.1.5.5.7.3.13");
70 oid_add_from_string("id-kp-eapOverLAN","1.3.6.1.5.5.7.3.14");