summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/gensec.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/auth/gensec.c')
-rw-r--r--source4/libcli/auth/gensec.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/libcli/auth/gensec.c b/source4/libcli/auth/gensec.c
index d9849276a6..5d8e3bbca4 100644
--- a/source4/libcli/auth/gensec.c
+++ b/source4/libcli/auth/gensec.c
@@ -315,6 +315,12 @@ NTSTATUS gensec_unseal_packet(struct gensec_security *gensec_security,
return NT_STATUS_NOT_IMPLEMENTED;
}
if (!(gensec_security->want_features & GENSEC_WANT_SEAL)) {
+ if (gensec_security->want_features & GENSEC_WANT_SIGN) {
+ return gensec_check_packet(gensec_security, mem_ctx,
+ data, length,
+ whole_pdu, pdu_length,
+ sig);
+ }
return NT_STATUS_INVALID_PARAMETER;
}
@@ -350,6 +356,12 @@ NTSTATUS gensec_seal_packet(struct gensec_security *gensec_security,
return NT_STATUS_NOT_IMPLEMENTED;
}
if (!(gensec_security->want_features & GENSEC_WANT_SEAL)) {
+ if (gensec_security->want_features & GENSEC_WANT_SIGN) {
+ return gensec_sign_packet(gensec_security, mem_ctx,
+ data, length,
+ whole_pdu, pdu_length,
+ sig);
+ }
return NT_STATUS_INVALID_PARAMETER;
}