summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-09-24 11:20:45 -0700
committerAndrew Bartlett <abartlet@samba.org>2008-09-29 22:34:35 -0700
commit8dd35fabbb4732cf601a93abbe0373fd53e661a1 (patch)
treec6692e46c7701439fc970250118f6dbd079d0f6b
parent45645426c2ae541fc2c3a112cde5a7f1d857938b (diff)
downloadsamba-8dd35fabbb4732cf601a93abbe0373fd53e661a1.tar.gz
samba-8dd35fabbb4732cf601a93abbe0373fd53e661a1.tar.bz2
samba-8dd35fabbb4732cf601a93abbe0373fd53e661a1.zip
NetApp found that we never set the smb signing flags2.
This was found during testing at the CIFS plugfest. No other client seems to honour or use this bit, but it is quite ligitimately required by the spec. Andrew Bartlett
-rw-r--r--source4/smb_server/smb/request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/smb_server/smb/request.c b/source4/smb_server/smb/request.c
index c7fa2d7d8a..eb3e100b96 100644
--- a/source4/smb_server/smb/request.c
+++ b/source4/smb_server/smb/request.c
@@ -140,6 +140,10 @@ void smbsrv_setup_reply(struct smbsrv_request *req, uint_t wct, size_t buflen)
flags2 |= FLAGS2_32_BIT_ERROR_CODES;
}
+ if (req->smb_conn->signing.allow_smb_signing || req->smb_conn->signing.mandatory_signing) {
+ flags2 |= FLAGS2_SMB_SECURITY_SIGNATURES;
+ }
+
req->out.hdr = req->out.buffer + NBT_HDR_SIZE;
req->out.vwv = req->out.hdr + HDR_VWV;
req->out.wct = wct;