summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-18 01:54:22 +0200
committerStefan Metzmacher <metze@samba.org>2009-09-25 05:20:16 +0200
commit36e889f2cf5497717bdffede0c2f82e7fee79275 (patch)
tree52aaa4862350cc5f25566a4597c75c2a3878051e /source4
parent68b8149d1fb26b2fe1138c99d971754b0a30378b (diff)
downloadsamba-36e889f2cf5497717bdffede0c2f82e7fee79275.tar.gz
samba-36e889f2cf5497717bdffede0c2f82e7fee79275.tar.bz2
samba-36e889f2cf5497717bdffede0c2f82e7fee79275.zip
s4:schannel: fix some compiler warnings
If we only do signing we can pass down a const data buffer. metze
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/schannel.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/auth/gensec/schannel.c b/source4/auth/gensec/schannel.c
index 0233f5e57c..69c50f8f2b 100644
--- a/source4/auth/gensec/schannel.c
+++ b/source4/auth/gensec/schannel.c
@@ -296,7 +296,8 @@ static NTSTATUS schannel_unseal_packet(struct gensec_security *gensec_security,
struct schannel_state);
return netsec_incoming_packet(state, mem_ctx, true,
- data, length, sig);
+ discard_const_p(uint8_t, data),
+ length, sig);
}
/*
@@ -346,7 +347,8 @@ static NTSTATUS schannel_sign_packet(struct gensec_security *gensec_security,
struct schannel_state);
return netsec_outgoing_packet(state, mem_ctx, false,
- data, length, sig);
+ discard_const_p(uint8_t, data),
+ length, sig);
}
static const struct gensec_security_ops gensec_schannel_security_ops = {