aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dtls.c
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2017-01-12 15:53:25 +0100
committerMichael Mann <mmann78@netscape.net>2017-01-12 21:02:42 +0000
commitaa76d58dd5967836e5b25d115cf0ff10a76f35a1 (patch)
treeffe45e057f9a81307e95a14a640eeb170a72ef89 /epan/dissectors/packet-dtls.c
parent4f01e93161714dfa7a8b5b5831e6014224b2af49 (diff)
uat: fix build error without libgcrypt/gnutls
Change-Id: I00fea4d2e8c4d7fc8fc54627ced21796d40b854a Reviewed-on: https://code.wireshark.org/review/19616 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-dtls.c')
-rw-r--r--epan/dissectors/packet-dtls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c
index bc3cb5bd29..ac416394dc 100644
--- a/epan/dissectors/packet-dtls.c
+++ b/epan/dissectors/packet-dtls.c
@@ -275,12 +275,14 @@ dtls_parse_uat(void)
dissector_add_for_decode_as("udp.port", dtls_handle);
}
+#if defined(HAVE_LIBGCRYPT) && defined(HAVE_LIBGNUTLS)
static void
dtls_reset_uat(void)
{
g_hash_table_destroy(dtls_key_hash);
dtls_key_hash = NULL;
}
+#endif
static void
dtls_parse_old_keys(void)