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:
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,
|
status = ntlmssp_unseal_packet(ntlmssp_state,
|
||||||
(unsigned char *)buf + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
|
(unsigned char *)buf + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
|
||||||
buf_len - 8,
|
buf_len - 8,
|
||||||
(unsigned char *)buf,
|
(unsigned char *)buf + 8,
|
||||||
buf_len,
|
buf_len - 8,
|
||||||
&sig);
|
&sig);
|
||||||
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
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,
|
status = ntlmssp_seal_packet(ntlmssp_state,
|
||||||
(unsigned char *)buf_out + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
|
(unsigned char *)buf_out + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
|
||||||
buf_len - 8,
|
buf_len - 8,
|
||||||
(unsigned char *)buf_out,
|
(unsigned char *)buf_out + 8,
|
||||||
buf_len,
|
buf_len - 8,
|
||||||
&sig);
|
&sig);
|
||||||
|
|
||||||
if (!NT_STATUS_IS_OK(status)) {
|
if (!NT_STATUS_IS_OK(status)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user