Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / epan / dissectors / packet-mudurl.c
blobab29269e01bf8b57b370f298fcd8a55955da22c9
1 /* Do not modify this file. Changes will be overwritten. */
2 /* Generated automatically by the ASN.1 to Wireshark dissector compiler */
3 /* packet-mudurl.c */
4 /* asn2wrs.py -b -q -L -p mudurl -c ./mudurl.cnf -s ./packet-mudurl-template -D . -O ../.. MUDURL.asn */
6 /* packet-mudurl-template.c
7 * Routines for mudurl found in draft-ietf-opsawg-mud
8 * by Eliot Lear
10 * Wireshark - Network traffic analyzer
11 * By Gerald Combs <gerald@wireshark.org>
12 * Copyright 1998 Gerald Combs
14 * SPDX-License-Identifier: GPL-2.0-or-later
17 #include "config.h"
19 #include <epan/packet.h>
20 #include <epan/asn1.h>
21 #include <wsutil/array.h>
23 #include "packet-ber.h"
24 /* #include "packet-mudurl.h" */ // At the moment we are not exporting.
25 #include "packet-x509af.h"
27 #define PNAME "MUDURL"
28 #define PSNAME "MUDURL"
29 #define PFNAME "mudurl"
31 void proto_register_mudurl(void);
32 void proto_reg_handoff_mudurl(void);
35 /* Initialize the protocol and registered fields */
36 static int proto_mudurl;
37 static int hf_mudurl_MUDURLSyntax_PDU; /* MUDURLSyntax */
39 /* Initialize the subtree pointers */
40 /* #include "packet-mudurl-ett.c" */
42 // static const char *object_identifier_id;
46 static int
47 dissect_mudurl_MUDURLSyntax(bool implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
48 offset = dissect_ber_restricted_string(implicit_tag, BER_UNI_TAG_IA5String,
49 actx, tree, tvb, offset, hf_index,
50 NULL);
52 return offset;
55 /*--- PDUs ---*/
57 static int dissect_MUDURLSyntax_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
58 int offset = 0;
59 asn1_ctx_t asn1_ctx;
60 asn1_ctx_init(&asn1_ctx, ASN1_ENC_BER, true, pinfo);
61 offset = dissect_mudurl_MUDURLSyntax(false, tvb, offset, &asn1_ctx, tree, hf_mudurl_MUDURLSyntax_PDU);
62 return offset;
67 /*--- proto_register_mudurl ----------------------------------------------*/
68 void proto_register_mudurl(void) {
70 /* List of fields */
71 static hf_register_info hf[] = {
72 { &hf_mudurl_MUDURLSyntax_PDU,
73 { "MUDURLSyntax", "mudurl.MUDURLSyntax",
74 FT_STRING, BASE_NONE, NULL, 0,
75 NULL, HFILL }},
78 /* List of subtrees */
79 /* static int *ett[] = {
80 #include "packet-mudurl-ettarr.c"
81 }; */
83 /* Register protocol */
84 proto_mudurl = proto_register_protocol(PNAME, PSNAME, PFNAME);
86 /* Register fields and subtrees */
87 proto_register_field_array(proto_mudurl, hf, array_length(hf));
88 // proto_register_subtree_array(ett, array_length(ett));
93 /*--- proto_reg_handoff_mudurl -------------------------------------------*/
94 void proto_reg_handoff_mudurl(void) {
95 register_ber_oid_dissector("1.3.6.1.5.5.7.1.25", dissect_MUDURLSyntax_PDU, proto_mudurl, "id-pe-mud-url");