summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-27 08:48:55 +0100
committerStefan Metzmacher <metze@samba.org>2012-02-27 12:51:33 +0100
commitaa4331be9e6e3db3bd14c9abd024e95f6aec8bdb (patch)
tree7468dba78b8dd1167eb2938bcad2969a427aacf2 /source4/libcli
parentb93f6ac79c431e4effb3905824bcaef5cbe5e85a (diff)
downloadsamba-aa4331be9e6e3db3bd14c9abd024e95f6aec8bdb.tar.gz
samba-aa4331be9e6e3db3bd14c9abd024e95f6aec8bdb.tar.bz2
samba-aa4331be9e6e3db3bd14c9abd024e95f6aec8bdb.zip
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
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/libcli/smb2/session.c b/source4/libcli/smb2/session.c
index e35a4734de..976880857d 100644
--- a/source4/libcli/smb2/session.c
+++ b/source4/libcli/smb2/session.c
@@ -219,9 +219,9 @@ static void smb2_session_setup_spnego_done(struct tevent_req *subreq)
return;
}
- status = smb2cli_session_update_session_key(session->smbXcli,
- session->session_key,
- recv_iov);
+ status = smb2cli_session_set_session_key(session->smbXcli,
+ session->session_key,
+ recv_iov);
if (tevent_req_nterror(req, status)) {
return;
}