]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: don't start signing too early
authorJeff Layton <jlayton@redhat.com>
Tue, 26 Jul 2011 16:21:17 +0000 (12:21 -0400)
committerSteve French <sfrench@us.ibm.com>
Sun, 31 Jul 2011 21:21:06 +0000 (21:21 +0000)
commitfbc2c6c5fc30a57df22de073bbe978a69d1fe8d9
treed731fae4fd3c2c0817edb73f4e29d4dd33ace135
parentd6094db891c9b5774afa987894ce44096fac9c75
cifs: don't start signing too early

Sniffing traffic on the wire shows that windows clients send a zeroed
out signature field in a NEGOTIATE request, and send "BSRSPYL" in the
signature field during SESSION_SETUP. Make the cifs client behave the
same way.

It doesn't seem to make much difference in any server that I've tested
against, but it's probably best to follow windows behavior as closely as
possible here.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c