From 67ac266ae85b57c5580a4f4dc1f49396d5ffc707 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 5 May 2011 18:12:07 +0200 Subject: s3:torture: add SMB2-BASIC Based on the initial patch from Volker Lendecke . metze --- source3/torture/torture.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'source3/torture/torture.c') diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4a01bf2a9c..a6387c1484 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -42,7 +42,7 @@ extern char *optarg; extern int optind; -static fstring host, workgroup, share, password, username, myname; +fstring host, workgroup, share, password, username, myname; static int max_protocol = PROTOCOL_NT1; static const char *sockops="TCP_NODELAY"; static int nprocs=1; @@ -414,6 +414,19 @@ bool torture_open_connection(struct cli_state **c, int conn_index) return torture_open_connection_share(c, host, share); } +bool torture_init_connection(struct cli_state **pcli) +{ + struct cli_state *cli; + + cli = open_nbt_connection(); + if (cli == NULL) { + return false; + } + + *pcli = cli; + return true; +} + bool torture_cli_session_setup2(struct cli_state *cli, uint16 *new_vuid) { uint16 old_vuid = cli->vuid; @@ -8695,6 +8708,7 @@ static struct { { "BAD-NBT-SESSION", run_bad_nbt_session }, { "SMB-ANY-CONNECT", run_smb_any_connect }, { "NOTIFY-ONLINE", run_notify_online }, + { "SMB2-BASIC", run_smb2_basic }, { "LOCAL-SUBSTITUTE", run_local_substitute, 0}, { "LOCAL-GENCACHE", run_local_gencache, 0}, { "LOCAL-TALLOC-DICT", run_local_talloc_dict, 0}, -- cgit