For multichannel connection we want a way to have just a connection
with a negprot finished.
For now we just fake a tcon and session in order to avoid changes in the
caller. We can clean that up later if needed.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
uint32_t smb2_capabilities;
struct GUID client_guid;
uint64_t max_credits;
+ unsigned int only_negprot;
};
/* this is the context for the client transport layer */
return;
}
+ if (state->options.only_negprot) {
+ state->tree = smb2_tree_init(state->session, state, true);
+ if (tevent_req_nomem(state->tree, req)) {
+ return;
+ }
+ tevent_req_done(req);
+ return;
+ }
+
subreq = smb2_session_setup_spnego_send(state, state->ev,
state->session,
state->credentials,