cifs.upcall: bump SPNEGO msg version number and don't reject old versions
authorJeff Layton <jlayton@redhat.com>
Sun, 24 Aug 2008 21:31:49 +0000 (17:31 -0400)
committerJeff Layton <jlayton@redhat.com>
Sun, 24 Aug 2008 21:31:49 +0000 (17:31 -0400)
commit2744bcbf3f22102911b5a3c4676e7d2f970a86eb
tree09d04bb59b3a3fff5f1009e6446ba0805b59250a
parentf845c95dcfa0b1630a0057c62941bb8a72ebdd83
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