From 628dd727cf889c0ca04a5b52f22dc39687ad9d53 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 30 Aug 2011 11:38:26 +0200 Subject: s3:SMB2-BASIC: use smbXcli_negprot() directly metze --- source3/torture/test_smb2.c | 6 ++++-- 1 file 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; } -- cgit