summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-01-06 17:14:25 +0100
committerGünther Deschner <gd@samba.org>2010-03-24 17:34:56 +0100
commit9172b4a0b1082f80ce8a1b551d67337005365b43 (patch)
treee4ebb15ae929afcb0d58bdf2bcec55fffe199f21 /source3/libsmb
parentd0ef97f74b61f0441b078845d0637f5dad3e2e16 (diff)
downloadsamba-9172b4a0b1082f80ce8a1b551d67337005365b43.tar.gz
samba-9172b4a0b1082f80ce8a1b551d67337005365b43.tar.bz2
samba-9172b4a0b1082f80ce8a1b551d67337005365b43.zip
s3:ntlmssp: make whole_pdu const for ntlmssp_[un]seal_packet()
Only data needs to be non-const. metze Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/ntlmssp_sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/ntlmssp_sign.c b/source3/libsmb/ntlmssp_sign.c
index 9c7bc241e1..2306304f41 100644
--- a/source3/libsmb/ntlmssp_sign.c
+++ b/source3/libsmb/ntlmssp_sign.c
@@ -251,7 +251,7 @@ NTSTATUS ntlmssp_check_packet(struct ntlmssp_state *ntlmssp_state,
NTSTATUS ntlmssp_seal_packet(struct ntlmssp_state *ntlmssp_state,
uint8_t *data, size_t length,
- uint8_t *whole_pdu, size_t pdu_length,
+ const uint8_t *whole_pdu, size_t pdu_length,
DATA_BLOB *sig)
{
if (!(ntlmssp_state->neg_flags & NTLMSSP_NEGOTIATE_SEAL)) {
@@ -338,7 +338,7 @@ NTSTATUS ntlmssp_seal_packet(struct ntlmssp_state *ntlmssp_state,
NTSTATUS ntlmssp_unseal_packet(struct ntlmssp_state *ntlmssp_state,
uint8_t *data, size_t length,
- uint8_t *whole_pdu, size_t pdu_length,
+ const uint8_t *whole_pdu, size_t pdu_length,
DATA_BLOB *sig)
{
if (!ntlmssp_state->session_key.length) {