svn commit: samba r21912 - in branches/SAMBA_3_0/source/libsmb: .
jra at samba.org
jra at samba.org
Wed Mar 21 17:13:36 GMT 2007
Author: jra
Date: 2007-03-21 17:13:35 +0000 (Wed, 21 Mar 2007)
New Revision: 21912
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21912
Log:
There's no point checksumming the packet length
this already has to be right. This makes the
signed+sealed area the same as it will be with
gss calls. Now to go implement them.
Jeremy.
Modified:
branches/SAMBA_3_0/source/libsmb/smb_seal.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/smb_seal.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/smb_seal.c 2007-03-21 17:05:39 UTC (rev 21911)
+++ branches/SAMBA_3_0/source/libsmb/smb_seal.c 2007-03-21 17:13:35 UTC (rev 21912)
@@ -54,8 +54,8 @@
status = ntlmssp_unseal_packet(ntlmssp_state,
(unsigned char *)buf + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
buf_len - 8,
- (unsigned char *)buf,
- buf_len,
+ (unsigned char *)buf + 8,
+ buf_len - 8,
&sig);
if (!NT_STATUS_IS_OK(status)) {
@@ -104,8 +104,8 @@
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
buf_len - 8,
- (unsigned char *)buf_out,
- buf_len,
+ (unsigned char *)buf_out + 8,
+ buf_len - 8,
&sig);
if (!NT_STATUS_IS_OK(status)) {
More information about the samba-cvs
mailing list