From 615c41ce128233c90bc77fc413fdcdc92c1cad50 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Feb 2012 09:29:53 +0100 Subject: libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu() metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104 --- source3/smbd/smb2_server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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; -- cgit