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)
commit2ed60a4f6a6e7533648a588fa3c5d98f37529229
treea0ea7fcaca5afedf09ceacc91005d0bb17efb9fa
parent2f02c33982ffc296a05ed8119cd9a9832a2de203
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>
(This used to be commit b868463015dedc684eb13d12118a98ccca71250a)
source3/client/cifs.upcall.c
source3/client/cifs_spnego.h