From 764b5e56108362a53acf8f435203dd1e56ecd2ce Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Sun, 20 May 2012 17:54:29 +0200 Subject: s3:libsmb: get rid of cli_negprot Signed-off-by: Luk Claes Signed-off-by: Stefan Metzmacher --- source3/torture/locktest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/torture/locktest.c') diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index 288ce8fe54..04928f20ac 100644 --- a/source3/torture/locktest.c +++ b/source3/torture/locktest.c @@ -22,6 +22,7 @@ #include "system/filesys.h" #include "locking/proto.h" #include "libsmb/nmblib.h" +#include "../libcli/smb/smbXcli_base.h" static fstring password[2]; static fstring username[2]; @@ -198,7 +199,8 @@ static struct cli_state *connect_one(char *share, int snum) return NULL; } - status = cli_negprot(c, PROTOCOL_NT1); + status = smbXcli_negprot(c->conn, c->timeout, PROTOCOL_CORE, + PROTOCOL_NT1); if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("protocol negotiation failed: %s\n", nt_errstr(status))); -- cgit