mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r1992: Make the NTLMSSP torture test show more detail, and return failure etc.
Andrew Bartlett
This commit is contained in:
parent
b2d93d0010
commit
a8e76085a7
@ -50,8 +50,17 @@ BOOL torture_ntlmssp_self_check(int dummy)
|
||||
|
||||
expected_sig = strhex_to_data_blob("01000000e37f97f2544f4d7e00000000");
|
||||
|
||||
dump_data_pw("NTLMSSP sig: ", sig.data, sig.length);
|
||||
dump_data_pw("NTLMSSP sig: ", expected_sig.data, expected_sig.length);
|
||||
dump_data_pw("NTLMSSP calc sig: ", sig.data, sig.length);
|
||||
dump_data_pw("NTLMSSP expected sig: ", expected_sig.data, expected_sig.length);
|
||||
|
||||
if (sig.length != expected_sig.length) {
|
||||
printf("Wrong sig length: %d != %d\n", sig.length, expected_sig.length);
|
||||
return False;
|
||||
}
|
||||
|
||||
if (memcmp(sig.data, expected_sig.data, sig.length)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
ntlmssp_end(&ntlmssp_state);
|
||||
|
||||
@ -78,8 +87,17 @@ BOOL torture_ntlmssp_self_check(int dummy)
|
||||
|
||||
expected_sig = strhex_to_data_blob("0100000078010900397420fe0e5a0f89");
|
||||
|
||||
dump_data_pw("NTLMSSP sig: ", sig.data, sig.length);
|
||||
dump_data_pw("NTLMSSP sig: ", expected_sig.data, expected_sig.length);
|
||||
dump_data_pw("NTLMSSP calc sig: ", sig.data, sig.length);
|
||||
dump_data_pw("NTLMSSP expected sig: ", expected_sig.data, expected_sig.length);
|
||||
|
||||
if (sig.length != expected_sig.length) {
|
||||
printf("Wrong sig length: %d != %d\n", sig.length, expected_sig.length);
|
||||
return False;
|
||||
}
|
||||
|
||||
if (memcmp(sig.data, expected_sig.data, sig.length)) {
|
||||
return False;
|
||||
}
|
||||
|
||||
return True;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user