diff options
author | Günther Deschner <gd@samba.org> | 2016-07-25 16:37:19 +0200 |
---|---|---|
committer | Uri Simchoni <uri@samba.org> | 2016-09-07 09:28:13 +0200 |
commit | 839cd98f48cbfc84d70a73828a6bf14b1c2999c8 (patch) | |
tree | ba9468e7c809ba9a4ff9bdbd88181e65163a14f9 /source4/torture/ndr/drsblobs.c | |
parent | d8b57e3828eac084ad302a90b33c35ff4e918e5a (diff) | |
download | samba-839cd98f48cbfc84d70a73828a6bf14b1c2999c8.tar.gz |
s4-torture: cleanup torture_suite_add_ndr_pull_validate_test API.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Wed Sep 7 09:28:13 CEST 2016 on sn-devel-144
Diffstat (limited to 'source4/torture/ndr/drsblobs.c')
-rw-r--r-- | source4/torture/ndr/drsblobs.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source4/torture/ndr/drsblobs.c b/source4/torture/ndr/drsblobs.c index b1a4711aa96..0ef2d95056b 100644 --- a/source4/torture/ndr/drsblobs.c +++ b/source4/torture/ndr/drsblobs.c @@ -513,37 +513,35 @@ struct torture_suite *ndr_drsblobs_suite(TALLOC_CTX *ctx) torture_suite_add_ndr_pull_test(suite, ForestTrustInfo, forest_trust_info_data_out, forest_trust_info_check_out); torture_suite_add_ndr_pull_test(suite, trustDomainPasswords, trust_domain_passwords_in, trust_domain_passwords_check_in); - torture_suite_add_ndr_pull_validate_test(suite, + torture_suite_add_ndr_pull_validate_test_blob(suite, trustAuthInOutBlob, base64_decode_data_blob_talloc(suite, trustAuthIncoming), NULL); - torture_suite_add_ndr_pull_validate_test(suite, + torture_suite_add_ndr_pull_validate_test_blob(suite, trustAuthInOutBlob, base64_decode_data_blob_talloc(suite, trustAuthOutgoing), NULL); torture_suite_add_ndr_pull_validate_test(empty1_suite, supplementalCredentialsBlob, - data_blob_const(supplementalCredentials_empty1, - sizeof(supplementalCredentials_empty1)), + supplementalCredentials_empty1, supplementalCredentials_empty1_check); torture_suite_add_ndr_pull_validate_test(empty2_suite, supplementalCredentialsBlob, - data_blob_const(supplementalCredentials_empty2, - sizeof(supplementalCredentials_empty2)), + supplementalCredentials_empty2, supplementalCredentials_empty2_check); - torture_suite_add_ndr_pull_validate_test(alpha13_suite, + torture_suite_add_ndr_pull_validate_test_blob(alpha13_suite, supplementalCredentialsBlob, base64_decode_data_blob_talloc(suite, alpha13_supplementalCredentials), alpha13_supplementalCredentials_check); - torture_suite_add_ndr_pull_validate_test(release_4_1_0rc3_suite, + torture_suite_add_ndr_pull_validate_test_blob(release_4_1_0rc3_suite, supplementalCredentialsBlob, base64_decode_data_blob_talloc(suite, release_4_1_0rc3_supplementalCredentials), release_4_1_0rc3_supplementalCredentials_check); - torture_suite_add_ndr_pull_validate_test(release_4_5_0pre_GPG_suite, + torture_suite_add_ndr_pull_validate_test_blob(release_4_5_0pre_GPG_suite, supplementalCredentialsBlob, base64_decode_data_blob_talloc(suite, release_4_5_0pre_GPG_supplementalCredentials), release_4_5_0pre_GPG_supplementalCredentials_check); @@ -551,7 +549,7 @@ struct torture_suite *ndr_drsblobs_suite(TALLOC_CTX *ctx) /* This last byte is typically not initialized, we force to zero to allow pull/push */ win2012R2_supplementalCredentials_blob = base64_decode_data_blob_talloc(suite, win2012R2_supplementalCredentials); win2012R2_supplementalCredentials_blob.data[win2012R2_supplementalCredentials_blob.length-1] = 0; - torture_suite_add_ndr_pull_validate_test(win2012R2_suite, + torture_suite_add_ndr_pull_validate_test_blob(win2012R2_suite, supplementalCredentialsBlob, win2012R2_supplementalCredentials_blob, win2012R2_supplementalCredentials_check); |