aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ntlmssp.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-03-10 08:50:18 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-03-10 08:50:18 +0000
commit0180d280fe208de98fa5a18c9429b7374569852e (patch)
tree97c2e0a2243ac57c96e25c1a88d428e5bbf9fc34 /epan/dissectors/packet-ntlmssp.c
parent420323a21242b740e27b544a9ef6cd2e6a5e7086 (diff)
change the signature for the functions to decrypt data for the
dcerpc_auth_subdissector_fns structure. the SignAndSeal decryption (which works really well) needs this. svn path=/trunk/; revision=13688
Diffstat (limited to 'epan/dissectors/packet-ntlmssp.c')
-rw-r--r--epan/dissectors/packet-ntlmssp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c
index 707e90c4ff..6a595a94b1 100644
--- a/epan/dissectors/packet-ntlmssp.c
+++ b/epan/dissectors/packet-ntlmssp.c
@@ -1411,7 +1411,9 @@ dissect_ntlmssp_verf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
static tvbuff_t *
-dissect_ntlmssp_encrypted_payload(tvbuff_t *tvb, int offset,
+dissect_ntlmssp_encrypted_payload(tvbuff_t *data_tvb,
+ tvbuff_t *auth_tvb _U_,
+ int offset,
packet_info *pinfo,
dcerpc_auth_info *auth_info _U_)
{
@@ -1424,7 +1426,7 @@ dissect_ntlmssp_encrypted_payload(tvbuff_t *tvb, int offset,
ntlmssp_info *conv_ntlmssp_info = NULL;
ntlmssp_packet_info *packet_ntlmssp_info = NULL;
- encrypted_block_length = tvb_length_remaining (tvb, offset);
+ encrypted_block_length = tvb_length_remaining (data_tvb, offset);
/* Check to see if we already have state for this packet */
packet_ntlmssp_info = p_get_proto_data(pinfo->fd, proto_ntlmssp);
@@ -1470,7 +1472,7 @@ dissect_ntlmssp_encrypted_payload(tvbuff_t *tvb, int offset,
/* Store the decrypted contents in the packet state struct
(of course at this point, they aren't decrypted yet) */
- packet_ntlmssp_info->decrypted_payload = tvb_memdup(tvb, offset,
+ packet_ntlmssp_info->decrypted_payload = tvb_memdup(data_tvb, offset,
encrypted_block_length);
decrypted_payloads = g_slist_prepend(decrypted_payloads,
packet_ntlmssp_info->decrypted_payload);
@@ -1495,7 +1497,7 @@ dissect_ntlmssp_encrypted_payload(tvbuff_t *tvb, int offset,
encrypted_block_length,
encrypted_block_length);
- tvb_set_child_real_data_tvbuff(tvb, decr_tvb);
+ tvb_set_child_real_data_tvbuff(data_tvb, decr_tvb);
offset += encrypted_block_length;