Fix up some of the SMB signing code:
authorAndrew Bartlett <abartlet@samba.org>
Sun, 16 Jun 2002 04:21:56 +0000 (04:21 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 16 Jun 2002 04:21:56 +0000 (04:21 +0000)
commit60ad5b69808c0ebfecd13c8f741f4e5687742899
tree8669807f3753437a6ab007614ed2fc7dd125d92c
parentba73192c3cec720656f65ede44f82d9e6027a9aa
Fix up some of the SMB signing code:

The problem was that *all* packets were being signed, even packets before
signing was set up.  (This broke the session request).

This fixes it to be an 'opt in' measure - that is, we only attempt to sign
things after we have got a valid, non-guest session setup as per the CIFS spec.

I've not tested this against an MS server, becouse my VMware is down, but
at least it doesn't break the build farm any more.

Andrew Bartlett
(This used to be commit 1dc5a8765876c1ca822e454651f8fd4a551965e9)
source3/include/client.h
source3/libsmb/cliconnect.c
source3/libsmb/clientgen.c
source3/libsmb/clireadwrite.c
source3/libsmb/smbencrypt.c