mirror of
https://github.com/samba-team/samba.git
synced 2025-11-02 20:23:50 +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 80810af7d1)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
e17a35e3ea
commit
d8bb69515b
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user