cifs.upcall: bump SPNEGO msg version number and don't reject old versions
commitb4e47c1b29d7538c36f698208a6cc3020929a2ec
authorJeff Layton <jlayton@redhat.com>
Fri, 22 Aug 2008 21:29:16 +0000 (22 17:29 -0400)
committerKarolin Seeger <kseeger@samba.org>
Mon, 25 Aug 2008 08:40:42 +0000 (25 10:40 +0200)
tree52bc7551812cf01f817736df2a0bde2d106d63f9
parentd0414ea0c20a726fc6edb6ee901b99d170ae86c6
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 653c9a6abc88dffe786941c4e99fd125f53e3b86)
source/client/cifs.upcall.c
source/client/cifs_spnego.h