1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

r21912: 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.
(This used to be commit 80810af7d1137b3ddd3073581d5ec99fadaa81a5)
This commit is contained in:
Jeremy Allison 2007-03-21 17:13:35 +00:00 committed by Gerald (Jerry) Carter
parent e17a35e3ea
commit d8bb69515b

View File

@ -54,8 +54,8 @@ NTSTATUS common_ntlm_decrypt_buffer(NTLMSSP_STATE *ntlmssp_state, char *buf)
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 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE *ntlmssp_state, char *buf, cha
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)) {