mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s4:libcli:smb2: add a previous session argument to smb2_connect_send()
This commit is contained in:
parent
681bca6768
commit
e9210987c6
@ -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);
|
||||
|
@ -255,6 +255,7 @@ static struct composite_context *dcerpc_pipe_connect_ncacn_np_smb2_send(
|
||||
"IPC$",
|
||||
s->io.resolve_ctx,
|
||||
s->io.creds,
|
||||
0, /* previous_session_id */
|
||||
&options,
|
||||
lpcfg_socket_options(lp_ctx),
|
||||
lpcfg_gensec_settings(mem_ctx, lp_ctx));
|
||||
|
Loading…
Reference in New Issue
Block a user