aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-12-07 18:50:41 +0000
committerGerald Combs <gerald@wireshark.org>2007-12-07 18:50:41 +0000
commitbe6e31fa449a54a25b2b7377456b20a9d2023820 (patch)
treee0141b6adb05bb62e9023f758d8d76714a54eb2d /epan/dissectors/packet-dcerpc.c
parentfcadd9d59ffff88e3fa1e82b46c1d0fde76d80f3 (diff)
Register the "samr.nt_password" preference as obsolete.
svn path=/trunk/; revision=23794
Diffstat (limited to 'epan/dissectors/packet-dcerpc.c')
-rw-r--r--epan/dissectors/packet-dcerpc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc.c b/epan/dissectors/packet-dcerpc.c
index 7c62a1196b..6bc93e60ca 100644
--- a/epan/dissectors/packet-dcerpc.c
+++ b/epan/dissectors/packet-dcerpc.c
@@ -680,6 +680,8 @@ dcerpc_init_uuid (int proto, int ett, e_uuid_t *uuid, guint16 ver,
dcerpc_uuid_key *key = g_malloc (sizeof (*key));
dcerpc_uuid_value *value = g_malloc (sizeof (*value));
header_field_info *hf_info;
+ module_t *samr_module;
+ const char *filter_name = proto_get_protocol_filter_name(proto);
key->uuid = *uuid;
key->ver = ver;
@@ -698,6 +700,13 @@ dcerpc_init_uuid (int proto, int ett, e_uuid_t *uuid, guint16 ver,
/* add this GUID to the global name resolving */
guids_add_uuid(uuid, proto_get_protocol_short_name (value->proto));
+
+ /* Register the samr.nt_password preference as obsolete */
+ /* This should be in packet-dcerpc-samr.c */
+ if (strcmp(filter_name, "samr") == 0) {
+ samr_module = prefs_register_protocol (proto, NULL);
+ prefs_register_obsolete_preference(samr_module, "nt_password");
+ }
}
/* Function to find the name of a registered protocol