mirror of
https://github.com/samba-team/samba.git
synced 2025-10-23 11:33:16 +03:00
r22389: Start preparing for multiple encryption contexts in the
server. Allow server to reflect back to calling client
the encryption context that was sent.
Jeremy.
(This used to be commit b49e90335d
)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
20086f66cc
commit
dc90cd89a7
@@ -93,10 +93,11 @@ NTSTATUS common_ntlm_decrypt_buffer(NTLMSSP_STATE *ntlmssp_state, char *buf)
|
||||
}
|
||||
|
||||
memcpy(buf + 8, inbuf + 8 + NTLMSSP_SIG_SIZE, data_len);
|
||||
SAFE_FREE(inbuf);
|
||||
|
||||
/* Reset the length. */
|
||||
smb_setlen(buf, data_len + 4);
|
||||
smb_setlen(buf, data_len + 4, inbuf);
|
||||
|
||||
SAFE_FREE(inbuf);
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
||||
@@ -203,7 +204,7 @@ static NTSTATUS common_gss_decrypt_buffer(struct smb_tran_enc_state_gss *gss_sta
|
||||
}
|
||||
|
||||
memcpy(buf + 8, out_buf.value, out_buf.length);
|
||||
smb_setlen(buf, out_buf.length + 4);
|
||||
smb_setlen(buf, out_buf.length + 4, out_buf.value);
|
||||
|
||||
gss_release_buffer(&minor, &out_buf);
|
||||
return NT_STATUS_OK;
|
||||
|
Reference in New Issue
Block a user