mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4-smbtorture: rearrange testlist in RPC-BIND.
Guenther
This commit is contained in:
parent
7755e196a1
commit
1c7d089904
@ -87,11 +87,29 @@ static void test_bind_op(struct torture_suite *suite,
|
||||
struct torture_suite *torture_rpc_bind(TALLOC_CTX *mem_ctx)
|
||||
{
|
||||
struct torture_suite *suite = torture_suite_create(mem_ctx, "BIND");
|
||||
struct {
|
||||
const char *test_name;
|
||||
uint32_t flags;
|
||||
} tests[] = {
|
||||
{
|
||||
.test_name = "ntlm,sign",
|
||||
.flags = DCERPC_AUTH_NTLM | DCERPC_SIGN
|
||||
},{
|
||||
.test_name = "ntlm,sign,seal",
|
||||
.flags = DCERPC_AUTH_NTLM | DCERPC_SIGN | DCERPC_SEAL
|
||||
},{
|
||||
.test_name = "spnego,sign",
|
||||
.flags = DCERPC_AUTH_SPNEGO | DCERPC_SIGN
|
||||
},{
|
||||
.test_name = "spnego,sign,seal",
|
||||
.flags = DCERPC_AUTH_SPNEGO | DCERPC_SIGN | DCERPC_SEAL
|
||||
}
|
||||
};
|
||||
int i;
|
||||
|
||||
test_bind_op(suite, "ntlm,sign", DCERPC_AUTH_NTLM | DCERPC_SIGN);
|
||||
test_bind_op(suite, "ntlm,sign,seal", DCERPC_AUTH_NTLM | DCERPC_SIGN | DCERPC_SEAL);
|
||||
test_bind_op(suite, "spnego,sign", DCERPC_AUTH_SPNEGO | DCERPC_SIGN);
|
||||
test_bind_op(suite, "spnego,sign,seal", DCERPC_AUTH_SPNEGO | DCERPC_SIGN | DCERPC_SEAL);
|
||||
for (i=0; i < ARRAY_SIZE(tests); i++) {
|
||||
test_bind_op(suite, tests[i].test_name, tests[i].flags);
|
||||
}
|
||||
|
||||
return suite;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user