summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-03 00:35:03 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-15 08:16:48 +0100
commit22f30db8d006ccb0610ce0a4473d9266bfaf1080 (patch)
treeee095e71b00a72414cb760213b537d4f77a9f0b0 /source4
parentf33b191f6545c47a55fa2f36855cefd79c1a20d8 (diff)
downloadsamba-22f30db8d006ccb0610ce0a4473d9266bfaf1080.tar.gz
samba-22f30db8d006ccb0610ce0a4473d9266bfaf1080.tar.xz
samba-22f30db8d006ccb0610ce0a4473d9266bfaf1080.zip
s4-smbtorture: add more spoolss_EnumPrinterKey tests for local NDR test.
Guenther (cherry picked from commit dc71d1c29de521c5034fd7ebf4657610d62c2c3c) (cherry picked from commit 2f49b911249b71c5aa68d14203e322c750acaef2)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/ndr/README4
-rw-r--r--source4/torture/ndr/spoolss.c14
2 files changed, 18 insertions, 0 deletions
diff --git a/source4/torture/ndr/README b/source4/torture/ndr/README
new file mode 100644
index 00000000000..d17d0b24ad0
--- /dev/null
+++ b/source4/torture/ndr/README
@@ -0,0 +1,4 @@
+use
+ hexdump -e '12/1 "0x%02x, " "\n"' infile|outfile
+
+to import ndr dumps
diff --git a/source4/torture/ndr/spoolss.c b/source4/torture/ndr/spoolss.c
index bcff814ad14..bdab29facb9 100644
--- a/source4/torture/ndr/spoolss.c
+++ b/source4/torture/ndr/spoolss.c
@@ -219,6 +219,17 @@ static const uint8_t enumprinterdataex_out_data[] = {
0xea, 0x00, 0x00, 0x00
};
+static const uint8_t enumprinterkey_in_data2[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x2a, 0xcc, 0x89, 0x90, 0x8a, 0xfc, 0xca, 0x4c,
+ 0xa5, 0x44, 0xdc, 0x30, 0x10, 0x20, 0xd9, 0x8f, 0x01, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x53, 0x00,
+ 0x00, 0x00, 0x00, 0x00
+};
+
+static const uint8_t enumprinterkey_out_data2[] = {
+ 0x00, 0x00, 0x00, 0x00, 0x76, 0x00, 0x00, 0x00, 0xea, 0x00, 0x00, 0x00
+};
+
static const uint8_t enumprinterkey_in_data[] = {
0x00, 0x00, 0x00, 0x00, 0x22, 0x5c, 0x46, 0xe5, 0x74, 0xa1, 0x9e, 0x46,
0x95, 0x80, 0x19, 0xf1, 0xaa, 0x63, 0xc9, 0x01, 0x01, 0x00, 0x00, 0x00,
@@ -471,6 +482,9 @@ struct torture_suite *ndr_spoolss_suite(TALLOC_CTX *ctx)
torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_in_data, NDR_IN, NULL );
torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_out_data, NDR_OUT, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_in_data2, NDR_IN, NULL );
+ torture_suite_add_ndr_pull_fn_test(suite, spoolss_EnumPrinterKey, enumprinterkey_out_data2, NDR_OUT, NULL );
+
torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_in_data, NDR_IN, NULL );
torture_suite_add_ndr_pull_fn_test(suite, spoolss_FindClosePrinterNotify, FCPN_out_data, NDR_OUT, NULL );