diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-08-30 11:38:26 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-24 19:02:32 +0100 |
commit | 628dd727cf889c0ca04a5b52f22dc39687ad9d53 (patch) | |
tree | ed0cc2ccf12518ccadbacfb4d026ae1ec1ed6caa | |
parent | 6ab3f8cedbd79776169b1f84d8775b9887d9c82d (diff) | |
download | samba-628dd727cf889c0ca04a5b52f22dc39687ad9d53.tar.gz samba-628dd727cf889c0ca04a5b52f22dc39687ad9d53.tar.bz2 samba-628dd727cf889c0ca04a5b52f22dc39687ad9d53.zip |
s3:SMB2-BASIC: use smbXcli_negprot() directly
metze
-rw-r--r-- | source3/torture/test_smb2.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/torture/test_smb2.c b/source3/torture/test_smb2.c index 1bd0271a67..5444c91ba6 100644 --- a/source3/torture/test_smb2.c +++ b/source3/torture/test_smb2.c @@ -20,6 +20,7 @@ #include "includes.h" #include "torture/proto.h" #include "client.h" +#include "../libcli/smb/smbXcli_base.h" #include "libsmb/smb2cli.h" #include "libcli/security/security.h" @@ -43,9 +44,10 @@ bool run_smb2_basic(int dummy) } cli->smb2.pid = 0xFEFF; - status = smb2cli_negprot(cli); + status = smbXcli_negprot(cli->conn, cli->timeout, + PROTOCOL_SMB2_02, PROTOCOL_SMB2_02); if (!NT_STATUS_IS_OK(status)) { - printf("smb2cli_negprot returned %s\n", nt_errstr(status)); + printf("smbXcli_negprot returned %s\n", nt_errstr(status)); return false; } |