static bool test_session_expire1i(struct torture_context *tctx,
+ bool force_signing,
bool force_encryption)
{
NTSTATUS status;
lpcfg_set_option(tctx->lp_ctx, "gensec_gssapi:requested_life_time=4");
lpcfg_smbcli_options(tctx->lp_ctx, &options);
- options.signing = SMB_SIGNING_REQUIRED;
+ if (force_signing) {
+ options.signing = SMB_SIGNING_REQUIRED;
+ }
status = smb2_connect(tctx,
host,
static bool test_session_expire1s(struct torture_context *tctx)
{
return test_session_expire1i(tctx,
+ true, /* force_signing */
false); /* force_encryption */
}
static bool test_session_expire1e(struct torture_context *tctx)
{
return test_session_expire1i(tctx,
+ true, /* force_signing */
true); /* force_encryption */
}