diff options
author | Andrew Bartlett <abartlet@samba.org> | 2005-07-09 04:58:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:25 -0500 |
commit | e75c7ff39fadb115de7bb5a26e2bb621dca22768 (patch) | |
tree | 3c74af8ab627bf8109264a3786bf88c3d05c74a4 /source4/torture/auth | |
parent | 38ec84a75c71b35ea88ba0efe5b935f7a0cdbe22 (diff) | |
download | samba-e75c7ff39fadb115de7bb5a26e2bb621dca22768.tar.gz samba-e75c7ff39fadb115de7bb5a26e2bb621dca22768.tar.xz samba-e75c7ff39fadb115de7bb5a26e2bb621dca22768.zip |
r8252: Steal metze's thunder, and prove that with a few small tweaks, we can
now push/pull a sample PAC, and still have the same byte buffer.
(Metze set up the string code, and probably already has a similar
patch).
Unfortunetly win2k3 still doesn't like what we provide, but every step helps.
Also use data_blob_const() when we are just wrapping data for API
reasons.
Andrew Bartlett
(This used to be commit e7c8076fc1459ff2ccefdaf0b091d04ee6137957)
Diffstat (limited to 'source4/torture/auth')
-rw-r--r-- | source4/torture/auth/pac.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/torture/auth/pac.c b/source4/torture/auth/pac.c index ade68fcd77f..f03b20b286b 100644 --- a/source4/torture/auth/pac.c +++ b/source4/torture/auth/pac.c @@ -302,12 +302,19 @@ static BOOL torture_pac_saved_check(void) * to create the pointer values */ if (tmp_blob.length != validate_blob.length) { - DEBUG(0, ("PAC push failed orignial buffer length[%u] != created buffer length[%u]\n", + DEBUG(0, ("PAC push failed: orignial buffer length[%u] != created buffer length[%u]\n", tmp_blob.length, validate_blob.length)); talloc_free(mem_ctx); return False; } + if (memcmp(tmp_blob.data, validate_blob.data, tmp_blob.length) != 0) { + DEBUG(0, ("PAC push failed: length[%u] matches, but data does not\n", + tmp_blob.length)); + talloc_free(mem_ctx); + return False; + } + talloc_free(mem_ctx); return True; } |