summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-27 09:29:53 +0100
committerStefan Metzmacher <metze@samba.org>2012-02-27 14:26:32 +0100
commit615c41ce128233c90bc77fc413fdcdc92c1cad50 (patch)
tree7613cd6ba37953790ef2c02d867899da06e99a4c /source3
parent7309e11ad58eb562859190ce99cb51ecbacbc540 (diff)
downloadsamba-615c41ce128233c90bc77fc413fdcdc92c1cad50.tar.gz
samba-615c41ce128233c90bc77fc413fdcdc92c1cad50.tar.bz2
samba-615c41ce128233c90bc77fc413fdcdc92c1cad50.zip
libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_server.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 899de07c23..7233e09bd2 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -786,6 +786,7 @@ static NTSTATUS smb2_send_async_interim_response(const struct smbd_smb2_request
if (nreq->do_signing) {
NTSTATUS status;
status = smb2_signing_sign_pdu(nreq->session->session_key,
+ get_Protocol(),
&nreq->out.vector[i], 3);
if (!NT_STATUS_IS_OK(status)) {
return status;
@@ -1071,6 +1072,7 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev,
NTSTATUS status;
status = smb2_signing_sign_pdu(req->session->session_key,
+ get_Protocol(),
&state->vector[1], 2);
if (!NT_STATUS_IS_OK(status)) {
smbd_server_connection_terminate(req->sconn,
@@ -1376,6 +1378,7 @@ NTSTATUS smbd_smb2_request_dispatch(struct smbd_smb2_request *req)
req->do_signing = true;
status = smb2_signing_check_pdu(req->session->session_key,
+ get_Protocol(),
&req->in.vector[i], 3);
if (!NT_STATUS_IS_OK(status)) {
return smbd_smb2_request_error(req, status);
@@ -1865,6 +1868,7 @@ static NTSTATUS smbd_smb2_request_reply(struct smbd_smb2_request *req)
if (req->do_signing) {
NTSTATUS status;
status = smb2_signing_sign_pdu(req->session->session_key,
+ get_Protocol(),
&req->out.vector[i], 3);
if (!NT_STATUS_IS_OK(status)) {
return status;