cifs.upcall: bump SPNEGO msg version number and don't reject old versions
authorJeff Layton <jlayton@redhat.com>
Fri, 22 Aug 2008 17:29:16 +0000 (13:29 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 22 Aug 2008 17:29:16 +0000 (13:29 -0400)
commitb868463015dedc684eb13d12118a98ccca71250a
tree1941beb3a8ad6f01df9b288b686b0981762d29a5
parent8d0a16d8034cd07037b3c7711867280d5fa5b2c8
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