aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-05-29 22:32:01 +0200
committerPascal Quantin <pascal.quantin@gmail.com>2015-05-29 20:34:13 +0000
commit486a530451d54c740f7efee2aad481529cb83108 (patch)
treebe89f6ba8991db101d9cde823ad85b4fd5d37ba3 /epan
parentba2e1108cd84a330a5702016e0ea9a4e6b28c8d9 (diff)
ISAKMP: fix compilation without libgcrypt
Change-Id: Ie0d9cc3d81b57f81fe50791bf0c5762578a22b19 Reviewed-on: https://code.wireshark.org/review/8692 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-isakmp.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-isakmp.c b/epan/dissectors/packet-isakmp.c
index 0a9ff041c9..cb3c275457 100644
--- a/epan/dissectors/packet-isakmp.c
+++ b/epan/dissectors/packet-isakmp.c
@@ -1960,9 +1960,10 @@ typedef struct ikev2_fragmentation_state_t {
guint8 next_payload;
} ikev2_fragmentation_state_t;
+#ifdef HAVE_LIBGCRYPT
/* frame_number -> next_payload. The key will be the frame that completes the original message */
static GHashTable *defrag_next_payload_hash = NULL;
-
+#endif
static void dissect_ikev2_fragmentation(tvbuff_t *, int, proto_tree *, packet_info *, guint32 message_id, guint8 next_payload,
void* decr_info);
@@ -3951,7 +3952,11 @@ dissect_cisco_fragmentation(tvbuff_t *tvb, int offset, int length, proto_tree *t
/* This is RFC7383 reassembly. */
static void
dissect_ikev2_fragmentation(tvbuff_t *tvb, int offset, proto_tree *tree,
+#ifdef HAVE_LIBGCRYPT
packet_info *pinfo, guint message_id, guint8 next_payload, void* decr_info)
+#else
+ packet_info *pinfo, guint message_id, guint8 next_payload, void* decr_info _U_)
+#endif
{
guint16 fragment_number, total_fragments;
#ifdef HAVE_LIBGCRYPT