r26654: libcli/smb_composite: Rather than specifying each of the gazillion options...
[sfrench/samba-autobuild/.git] / source4 / torture / raw / openbench.c
index 7f4752cdf7c3ec4761e4ae88b01a8be2e621b853..87b27d072837e42cd16e1b22b116adf96bcaf5a9 100644 (file)
@@ -131,13 +131,7 @@ static void reopen_connection(struct event_context *ev, struct timed_event *te,
        io->in.credentials  = cmdline_credentials;
        io->in.fallback_to_anonymous = false;
        io->in.workgroup    = lp_workgroup(state->tctx->lp_ctx);
-       io->in.max_xmit = lp_max_xmit(state->tctx->lp_ctx);
-       io->in.max_mux = lp_maxmux(state->tctx->lp_ctx);
-       io->in.ntstatus_support = lp_nt_status_support(state->tctx->lp_ctx);
-       io->in.max_protocol = lp_cli_maxprotocol(state->tctx->lp_ctx);
-       io->in.unicode = lp_unicode(state->tctx->lp_ctx);
-       io->in.use_spnego = lp_use_spnego(state->tctx->lp_ctx) && lp_nt_status_support(state->tctx->lp_ctx);
-       io->in.signing = lp_client_signing(state->tctx->lp_ctx);
+       lp_smbcli_options(state->tctx->lp_ctx, &io->in.options);
 
        /* kill off the remnants of the old connection */
        talloc_free(state->tree);