NTSTATUS status;
struct netr_LogonSamLogon r;
struct netr_Authenticator auth, auth2;
- static const struct netr_Authenticator auth_zero;
union netr_LogonLevel logon;
union netr_Validation validation;
uint8_t authoritative;
torture_assert_int_equal(tctx, *r.out.authoritative, 1,
"LogonSamLogon invalid *r.out.authoritative");
torture_assert(tctx,
- memcmp(&auth2, &auth_zero, sizeof(auth2)) == 0,
+ all_zero((uint8_t *)&auth2, sizeof(auth2)),
"Return authenticator non zero");
}
"LogonSamLogon expected INVALID_PARAMETER");
torture_assert(tctx,
- memcmp(&auth2, &auth_zero, sizeof(auth2)) == 0,
+ all_zero((uint8_t *)&auth2, sizeof(auth2)),
"Return authenticator non zero");
torture_assert_int_equal(tctx, *r.out.authoritative, 1,
"LogonSamLogon invalid *r.out.authoritative");
"LogonSamLogon expected INVALID_PARAMETER");
torture_assert(tctx,
- memcmp(&auth2, &auth_zero, sizeof(auth2)) == 0,
+ all_zero((uint8_t *)&auth2, sizeof(auth2)),
"Return authenticator non zero");
torture_assert_int_equal(tctx, *r.out.authoritative, 1,
"LogonSamLogon invalid *r.out.authoritative");