Moved the extra struct definitions Luke added to smb.h into rpcclient.h
[kai/samba.git] / source / include / client.h
1 /*
2    Unix SMB/Netbios implementation.
3    Version 1.9.
4    SMB parameters and setup
5    Copyright (C) Andrew Tridgell 1992-1998
6    Copyright (C) Luke Kenneth Casson Leighton 1996-1998
7    Copyright (C) Jeremy Allison 1998
8
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 */
23
24 #ifndef _CLIENT_H
25 #define _CLIENT_H
26
27 /*
28  * These definitions depend on smb.h
29  */
30
31 struct cli_state {
32   int fd;
33   int cnum;
34   int pid;
35   int mid;
36   int uid;
37   int protocol;
38   int sec_mode;
39   int rap_error;
40   int privilages;
41
42   fstring eff_name;
43   fstring desthost;
44   fstring user_name;
45   fstring domain;
46
47   fstring share;
48   fstring dev;
49   struct nmb_name called;
50   struct nmb_name calling;
51   fstring full_dest_host_name;
52   struct in_addr dest_ip;
53
54   struct pwd_info pwd;
55   char cryptkey[8];
56   uint32 sesskey;
57   int serverzone;
58   uint32 servertime;
59   int readbraw_supported;
60   int writebraw_supported;
61   int timeout;
62   int max_xmit;
63   char *outbuf;
64   char *inbuf;
65   int bufsize;
66   int initialised;
67   /*
68    * Only used in NT domain calls.
69    */
70   uint32 nt_error;                   /* NT RPC error code. */
71   uint16 nt_pipe_fnum;               /* Pipe handle. */
72   unsigned char sess_key[16];        /* Current session key. */
73   DOM_CRED clnt_cred;                /* Client credential. */
74   fstring mach_acct;                 /* MYNAME$. */
75   fstring srv_name_slash;            /* \\remote server. */
76   fstring clnt_name_slash;            /* \\local client. */
77 };
78
79 #endif /* _CLIENT_H */