mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
s4:schannel: fix some compiler warnings
If we only do signing we can pass down a const data buffer. metze
This commit is contained in:
parent
68b8149d1f
commit
36e889f2cf
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user