summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/cliconnect.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-27 17:34:36 +0200
committerVolker Lendecke <vl@samba.org>2011-03-27 19:04:11 +0200
commitffef3aa809eac020efd316c1922c50538d271a4f (patch)
tree58fc50111e0f5ae321e76ec5410e277121c31d4b /source3/libsmb/cliconnect.c
parenta60ba5461855825c71e290f03fa1182210f87cae (diff)
downloadsamba-ffef3aa809eac020efd316c1922c50538d271a4f.tar.gz
samba-ffef3aa809eac020efd316c1922c50538d271a4f.tar.xz
samba-ffef3aa809eac020efd316c1922c50538d271a4f.zip
s3: Replace cli_negprot_sendsync() by cli_negprot_send()
Diffstat (limited to 'source3/libsmb/cliconnect.c')
-rw-r--r--source3/libsmb/cliconnect.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index 819d83570da..6334f6b5873 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1913,41 +1913,6 @@ fail:
Send a negprot command.
****************************************************************************/
-void cli_negprot_sendsync(struct cli_state *cli)
-{
- char *p;
- int numprots;
-
- if (cli->protocol < PROTOCOL_NT1)
- cli->use_spnego = False;
-
- memset(cli->outbuf,'\0',smb_size);
-
- /* setup the protocol strings */
- cli_set_message(cli->outbuf,0,0,True);
-
- p = smb_buf(cli->outbuf);
- for (numprots=0; numprots < ARRAY_SIZE(prots); numprots++) {
- if (prots[numprots].prot > cli->protocol) {
- break;
- }
- *p++ = 2;
- p += clistr_push(cli, p, prots[numprots].name, -1, STR_TERMINATE);
- }
-
- SCVAL(cli->outbuf,smb_com,SMBnegprot);
- cli_setup_bcc(cli, p);
- cli_setup_packet(cli);
-
- SCVAL(smb_buf(cli->outbuf),0,2);
-
- cli_send_smb(cli);
-}
-
-/****************************************************************************
- Send a negprot command.
-****************************************************************************/
-
struct cli_negprot_state {
struct cli_state *cli;
};