#include "libcli/raw/libcliraw.h"
#include "libcli/raw/raw_proto.h"
#include "libcli/smb_composite/smb_composite.h"
+#include "../libcli/smb/smbXcli_base.h"
#define SETUP_REQUEST_TREE(cmd, wct, buflen) do { \
req = smbcli_request_setup(tree, cmd, wct, buflen); \
tree->session = talloc_reference(tree, session);
}
+ tree->smbXcli = smbXcli_tcon_create(tree);
+ if (tree->smbXcli == NULL) {
+ talloc_free(tree);
+ return NULL;
+ }
return tree;
}
req = smbcli_request_setup_session(tree->session, command, wct, buflen);
if (req) {
+ smb1cli_tcon_set_id(tree->smbXcli, tree->tid);
+
req->tree = tree;
SSVAL(req->out.hdr,HDR_TID,tree->tid);
}