uint16_t max_mux;
int request_timeout;
enum smb_signing_setting signing;
+ struct GUID client_guid;
};
/* this is the context for the client transport layer */
struct smbcli_options *options)
{
struct smb2_transport *transport;
- struct GUID client_guid;
uint32_t smb2_capabilities = 0;
transport = talloc_zero(parent_ctx, struct smb2_transport);
TALLOC_FREE(sock->event.fde);
TALLOC_FREE(sock->event.te);
- client_guid = GUID_random();
-
/* TODO: hand this in via the options? */
smb2_capabilities = SMB2_CAP_ALL;
sock->hostname,
options->signing,
0, /* smb1_capabilities */
- &client_guid,
+ &options->client_guid,
smb2_capabilities);
if (transport->conn == NULL) {
talloc_free(transport);
#include "includes.h"
#include "lib/param/param.h"
#include "libcli/raw/libcliraw.h"
+#include "librpc/ndr/libndr.h"
void lpcfg_smbcli_options(struct loadparm_context *lp_ctx,
struct smbcli_options *options)
options->unicode = lpcfg_unicode(lp_ctx);
options->use_oplocks = true;
options->use_level2_oplocks = true;
+ options->client_guid = GUID_random();
}
void lpcfg_smbcli_session_options(struct loadparm_context *lp_ctx,