aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dtls.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-26 00:05:26 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-26 00:05:26 +0000
commit190ae4662ba206a37b03f59e85501b07e2d93a47 (patch)
treeae944d6d0d7807f971c1f9210771100aeb0aeab5 /epan/dissectors/packet-dtls.c
parent2cf54d85b7f087924c632d43da610b0298bc5514 (diff)
Fix some compiler warnings (some by getting rid of variables unused if
you don't have GNU TLS). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19037 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-dtls.c')
-rw-r--r--epan/dissectors/packet-dtls.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c
index 651c8f466a..3af625f2be 100644
--- a/epan/dissectors/packet-dtls.c
+++ b/epan/dissectors/packet-dtls.c
@@ -151,7 +151,9 @@ static StringInfo dtls_decrypted_data = {NULL, 0};
static gint dtls_decrypted_data_avail = 0;
static gchar* dtls_keys_list = NULL;
+#ifdef HAVE_LIBGNUTLS
static gchar* dtls_debug_file_name = NULL;
+#endif
/* initialize/reset per capture state data (dtls sessions cache) */
static void
@@ -176,7 +178,7 @@ dtls_parse(void)
/* remove only associations created from key list */
tmp_stack = ep_stack_new();
g_tree_traverse(dtls_associations, ssl_assoc_from_key_list, G_IN_ORDER, tmp_stack);
- while (tmp_assoc = ep_stack_pop(tmp_stack)) {
+ while ((tmp_assoc = ep_stack_pop(tmp_stack)) != NULL) {
ssl_association_remove(dtls_associations, tmp_assoc);
}
@@ -2135,9 +2137,9 @@ proto_register_dtls(void)
proto_register_field_array(proto_dtls, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+#ifdef HAVE_LIBGNUTLS
{
module_t *dtls_module = prefs_register_protocol(proto_dtls, dtls_parse);
-#ifdef HAVE_LIBGNUTLS
prefs_register_string_preference(dtls_module, "keys_list", "RSA keys list",
"semicolon separated list of private RSA keys used for DTLS decryption; "
"each list entry must be in the form of <ip>,<port>,<protocol>,<key_file_name>"
@@ -2147,8 +2149,8 @@ proto_register_dtls(void)
"redirect dtls debug to file name; leave empty to disable debug, "
"use \"" SSL_DEBUG_USE_STDERR "\" to redirect output to stderr\n",
(const gchar **)&dtls_debug_file_name);
-#endif
}
+#endif
register_dissector("dtls", dissect_dtls, proto_dtls);
dtls_handle = find_dissector("dtls");