diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-05-05 18:12:07 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-08 01:22:22 +0200 |
commit | 67ac266ae85b57c5580a4f4dc1f49396d5ffc707 (patch) | |
tree | 0542bb85f018188227850dbb610d210ec75d94c4 /source3/torture/torture.c | |
parent | fdd6c4e673daa21cbf59bce023cfbd753974f48a (diff) | |
download | samba-67ac266ae85b57c5580a4f4dc1f49396d5ffc707.tar.gz samba-67ac266ae85b57c5580a4f4dc1f49396d5ffc707.tar.bz2 samba-67ac266ae85b57c5580a4f4dc1f49396d5ffc707.zip |
s3:torture: add SMB2-BASIC
Based on the initial patch from Volker Lendecke <vl@samba.org>.
metze
Diffstat (limited to 'source3/torture/torture.c')
-rw-r--r-- | source3/torture/torture.c | 16 |
1 files changed, 15 insertions, 1 deletions
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}, |