s4-torture: make sure we always verify ndr pull and push of bkrp_exported_RSA_key_pai...
authorGünther Deschner <gd@samba.org>
Fri, 13 Nov 2015 10:15:41 +0000 (11:15 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 10 Dec 2015 07:49:20 +0000 (08:49 +0100)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/torture/ndr/backupkey.c

index bc9aa7944a67581c395b736c222f2d9bf8f5d784..972d676d3e460c9b8e4fd12cb9985f0937bfcd7d 100644 (file)
@@ -154,7 +154,11 @@ struct torture_suite *ndr_backupkey_suite(TALLOC_CTX *ctx)
 {
        struct torture_suite *suite = torture_suite_create(ctx, "backupkey");
 
-       torture_suite_add_ndr_pull_fn_test(suite, bkrp_exported_RSA_key_pair, exported_rsa_ndr, NDR_BUFFERS|NDR_SCALARS, NULL);
+       torture_suite_add_ndr_pullpush_test(suite,
+                                           bkrp_exported_RSA_key_pair,
+                                           data_blob_const(exported_rsa_ndr,
+                                                           sizeof(exported_rsa_ndr)),
+                                           NULL);
 
        return suite;
 }