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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 28 Aug 2008 14:07:17 +0000 (16:07 +0200)
commit509c1efd574e16ff1d34dd940b7e52aeea761849
tree7ef453f22ed775b1834fa06fc7d5601a6ec94ae7
parentcc6d94bd0444b38b825e8c220abe1b56539cde07
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>
(cherry picked from commit 2744bcbf3f22102911b5a3c4676e7d2f970a86eb)
source/client/cifs.upcall.c
source/client/cifs_spnego.h