s3:libsmb: get rid of cli_negprot
[obnox/samba/samba-obnox.git] / source3 / torture / locktest.c
index 288ce8fe543a28a406fc77de7b85030628f61360..04928f20ac85084dfef760310ddbbf0d981ccda0 100644 (file)
@@ -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)));