summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-02-26 01:43:50 +0100
committerMichael Adam <obnox@samba.org>2012-02-28 00:08:53 +0100
commite9210987c6961a9fd81602d155604eb4dbe388fa (patch)
tree323c3c27aebfdc1c6c071330061272ddfe1787e3 /source4/libcli
parent681bca6768b8a054ac1178d1ff344c302dcd6846 (diff)
downloadsamba-e9210987c6961a9fd81602d155604eb4dbe388fa.tar.gz
samba-e9210987c6961a9fd81602d155604eb4dbe388fa.tar.bz2
samba-e9210987c6961a9fd81602d155604eb4dbe388fa.zip
s4:libcli:smb2: add a previous session argument to smb2_connect_send()
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/smb2/connect.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c
index f1cf108723..d9d430ddd5 100644
--- a/source4/libcli/smb2/connect.c
+++ b/source4/libcli/smb2/connect.c
@@ -35,6 +35,7 @@
struct smb2_connect_state {
struct tevent_context *ev;
struct cli_credentials *credentials;
+ uint64_t previous_session_id;
struct resolve_context *resolve_ctx;
const char *host;
const char *share;
@@ -62,6 +63,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx,
const char *share,
struct resolve_context *resolve_ctx,
struct cli_credentials *credentials,
+ uint64_t previous_session_id,
struct smbcli_options *options,
const char *socket_options,
struct gensec_settings *gensec_settings)
@@ -79,6 +81,7 @@ struct tevent_req *smb2_connect_send(TALLOC_CTX *mem_ctx,
state->ev = ev;
state->credentials = credentials;
+ state->previous_session_id = previous_session_id;
state->options = *options;
state->host = host;
state->ports = ports;
@@ -177,7 +180,7 @@ static void smb2_connect_negprot_done(struct tevent_req *subreq)
subreq = smb2_session_setup_spnego_send(state, state->ev,
state->session,
state->credentials,
- 0 /* previous_session_id */);
+ state->previous_session_id);
if (tevent_req_nomem(subreq, req)) {
return;
}
@@ -294,6 +297,7 @@ NTSTATUS smb2_connect(TALLOC_CTX *mem_ctx,
share,
resolve_ctx,
credentials,
+ 0, /* previous_session_id */
options,
socket_options,
gensec_settings);