mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
gensec: Refuse to seal if we did not negotiate to sign
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
09c5acdec8
commit
86d684e4d6
@ -76,6 +76,9 @@ _PUBLIC_ NTSTATUS gensec_seal_packet(struct gensec_security *gensec_security,
|
||||
if (!gensec_have_feature(gensec_security, GENSEC_FEATURE_SEAL)) {
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
if (!gensec_have_feature(gensec_security, GENSEC_FEATURE_SIGN)) {
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
return gensec_security->ops->seal_packet(gensec_security, mem_ctx, data, length, whole_pdu, pdu_length, sig);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user