cifs.upcall: bump SPNEGO msg version number and don't reject old versions
authorJeff Layton <jlayton@redhat.com>
Fri, 22 Aug 2008 21:29:16 +0000 (17:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Sun, 24 Aug 2008 21:28:23 +0000 (17:28 -0400)
commit653c9a6abc88dffe786941c4e99fd125f53e3b86
tree1f5e3fccaa65d2d1da41be5bb166fa771799fe06
parent59f52b3d9885c33569eba4f3afed50367a10ba9f
cifs.upcall: bump SPNEGO msg version number and don't reject old versions

When we added the ability for the kernel to send sec=mskrb5 to the
upcall, we subtly broke old cifs.upcall versions that don't understand
it. Bump the spnego message version to 2 to make this clear. Also,
change cifs.upcall to not reject requests with a version that's lower
than the current one, and to send the reply with the same version that
the request sent. The idea is to try and keep cifs.upcall backward
compatible with old kernels.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
source/client/cifs.upcall.c
source/client/cifs_spnego.h