Commit to HEAD the updates to smb signing code that I was propsing for 3.0.
authorAndrew Bartlett <abartlet@samba.org>
Tue, 9 Mar 2004 12:37:05 +0000 (12:37 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 9 Mar 2004 12:37:05 +0000 (12:37 +0000)
commit6bad895462cf076a7e917c909e2a461d1b360bf1
tree424be731f4970383cbef8c2483dfe81dc4766927
parenta9363b45b0ef652a5fd621915fafb97ada0c7d5e
Commit to HEAD the updates to smb signing code that I was propsing for 3.0.

This code implements 'opportunistic signing' in our client (when the
server supports it, we will use it), and correct downgrading on both
the client and server for the 'enabled' (rather than required) signing
level.

This means that we can actually set 'server signing = yes' and not
have the world fall apart.  We had a number of bugs in that code, and
it certainly looks like most of the testing was with the 'requried'
setting.

While the changes are reasonable, I'm putting this into HEAD rather
than 3.0 for the timebeing.  SMB signing, like NTLMSSP, tends to have
gotchas in it :-)

(I also need to give it a workout with more than smbclient before I
move it across).

Andrew Bartlett
source/include/smb.h
source/lib/util_sock.c
source/libsmb/cliconnect.c
source/libsmb/clientgen.c
source/libsmb/smb_signing.c
source/smbd/password.c
source/smbd/sesssetup.c