summaryrefslogtreecommitdiffstats
path: root/source/client/clientutil.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-23 13:38:46 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-23 13:38:46 +0000
commit473f21071fad603865358821b83df6b58c9a06a5 (patch)
treeb5ac632bc137a0c4c67dbd41ab8149b7a2883e32 /source/client/clientutil.c
parent2393c49b0509b8ce021f0acfba135219cd753cf9 (diff)
downloadsamba-473f21071fad603865358821b83df6b58c9a06a5.tar.gz
samba-473f21071fad603865358821b83df6b58c9a06a5.tar.xz
samba-473f21071fad603865358821b83df6b58c9a06a5.zip
playing about, trying to SMBopenX a \PIPE\NETLOGON (should be a SMBopen)
and then send a LSA_REQ_CHAL down it.
Diffstat (limited to 'source/client/clientutil.c')
-rw-r--r--source/client/clientutil.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c
index 142b95df79f..9919f0a2d34 100644
--- a/source/client/clientutil.c
+++ b/source/client/clientutil.c
@@ -92,10 +92,10 @@ void cli_setup_pkt(char *outbuf)
/****************************************************************************
call a remote api
****************************************************************************/
-BOOL cli_call_api(char *pipe_name, int prcnt,int drcnt,
+BOOL cli_call_api(char *pipe_name, int prcnt,int drcnt, int srcnt,
int mprcnt,int mdrcnt,
int *rprcnt,int *rdrcnt,
- char *param,char *data,
+ char *param,char *data, uint16 *setup,
char **rparam,char **rdata)
{
static char *inbuf=NULL;
@@ -105,9 +105,9 @@ BOOL cli_call_api(char *pipe_name, int prcnt,int drcnt,
if (!outbuf) outbuf = (char *)malloc(BUFFER_SIZE + SAFETY_MARGIN);
cli_send_trans_request(outbuf,SMBtrans,pipe_name, 0,0,
- data,param,NULL,
- drcnt,prcnt,0,
- mdrcnt,mprcnt,0);
+ data, param, setup,
+ drcnt, prcnt, srcnt,
+ mdrcnt, mprcnt, 0);
return (cli_receive_trans_response(inbuf,SMBtrans,
rdrcnt,rprcnt,
@@ -809,6 +809,8 @@ void cli_send_logout(void )
{
pstring inbuf,outbuf;
+ DEBUG(5,("cli_send_logout\n"));
+
bzero(outbuf,smb_size);
set_message(outbuf,0,0,True);
CVAL(outbuf,smb_com) = SMBtdis;