s4:libcli/smb2: allow smb2_connect*() to fake session and tcon
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Jul 2020 16:27:40 +0000 (18:27 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 8 Jul 2020 15:54:38 +0000 (15:54 +0000)
commit7d06874478edb29a14eedcd8d634f3bf5d8dee50
tree426c3ebb96f91e6b41fd927d27546cb6fa0d249a
parentfe6a6ec4d4843f4eecbb88e1664fbbc8e355a0ca
s4:libcli/smb2: allow smb2_connect*() to fake session and tcon

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>
source4/libcli/raw/libcliraw.h
source4/libcli/smb2/connect.c