2 * Unix SMB/CIFS implementation.
4 * RPC Pipe client routines
6 * Copyright (c) 2005 Jeremy Allison
7 * Copyright (c) 2010 Simo Sorce
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 3 of the License, or
12 * (at your option) any later version.
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.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, see <http://www.gnu.org/licenses/>.
27 #include "librpc/gen_ndr/dcerpc.h"
28 #include "librpc/rpc/dcerpc.h"
29 #include "../librpc/ndr/libndr.h"
30 #include "rpc_client/rpc_transport.h"
32 #ifdef SOURCE3_LIBRPC_INTERNALS
33 #define SOURCE3_LIBRPC_INTERNALS_BEGIN
34 #define SOURCE3_LIBRPC_INTERNALS_END
35 #else /* SOURCE3_LIBRPC_INTERNALS */
36 #define SOURCE3_LIBRPC_INTERNALS_BEGIN struct {
37 #define SOURCE3_LIBRPC_INTERNALS_END } internal;
38 #endif /* not SOURCE3_LIBRPC_INTERNALS */
40 struct dcerpc_binding_handle
;
42 struct rpc_client_association
;
43 struct rpc_client_connection
;
45 struct rpc_pipe_client
{
46 struct rpc_pipe_client
*prev
, *next
;
48 char *printer_username
;
52 struct dcerpc_binding_handle
*binding_handle
;
54 SOURCE3_LIBRPC_INTERNALS_BEGIN
56 struct cli_state
*np_cli
;
58 struct rpc_client_association
*assoc
;
59 struct rpc_client_connection
*conn
;
60 struct pipe_auth_data
*auth
;
62 uint16_t pres_context_id
;
63 const struct ndr_interface_table
*table
;
64 struct ndr_syntax_id transfer_syntax
;
65 bool verified_pcontext
;
67 SOURCE3_LIBRPC_INTERNALS_END
70 #endif /* _RPC_CLIENT_H */