libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key
commitaa4331be9e6e3db3bd14c9abd024e95f6aec8bdb
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Feb 2012 07:48:55 +0000 (27 08:48 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 27 Feb 2012 11:51:33 +0000 (27 12:51 +0100)
tree7468dba78b8dd1167eb2938bcad2969a427aacf2
parentb93f6ac79c431e4effb3905824bcaef5cbe5e85a
libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the signing_key

The signing_key is fix across all channels and is used for session setups
on a channel binding.

Note:
 - the last session setup response is signed with the new channel signing key.
 - the reauth session setups are signed with the channel signing key.

It's also not needed to remember the main session key.

metze
libcli/smb/smbXcli_base.c
libcli/smb/smbXcli_base.h
source3/libsmb/cliconnect.c
source3/torture/test_smb2.c
source4/libcli/smb2/session.c