diff options
author | Stefan Metzmacher <metze@samba.org> | 2009-09-18 01:54:22 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2009-09-25 05:20:16 +0200 |
commit | 36e889f2cf5497717bdffede0c2f82e7fee79275 (patch) | |
tree | 52aaa4862350cc5f25566a4597c75c2a3878051e | |
parent | 68b8149d1fb26b2fe1138c99d971754b0a30378b (diff) | |
download | samba-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
-rw-r--r-- | source4/auth/gensec/schannel.c | 6 |
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 = { |