mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
s4:librpc/rpc: pass dcerpc_binding arround as 'const'
This should only be modified by the owner. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
30fa344604
commit
0cc3e945b5
@ -185,13 +185,13 @@ NTSTATUS dcerpc_pipe_connect_b(TALLOC_CTX *parent_ctx,
|
||||
|
||||
NTSTATUS dcerpc_pipe_auth(TALLOC_CTX *mem_ctx,
|
||||
struct dcerpc_pipe **p,
|
||||
struct dcerpc_binding *binding,
|
||||
const struct dcerpc_binding *binding,
|
||||
const struct ndr_interface_table *table,
|
||||
struct cli_credentials *credentials,
|
||||
struct loadparm_context *lp_ctx);
|
||||
NTSTATUS dcerpc_secondary_connection(struct dcerpc_pipe *p,
|
||||
struct dcerpc_pipe **p2,
|
||||
struct dcerpc_binding *b);
|
||||
const struct dcerpc_binding *b);
|
||||
NTSTATUS dcerpc_bind_auth_schannel(TALLOC_CTX *tmp_ctx,
|
||||
struct dcerpc_pipe *p,
|
||||
const struct ndr_interface_table *table,
|
||||
@ -230,7 +230,7 @@ NTSTATUS dcerpc_epm_map_binding(TALLOC_CTX *mem_ctx, struct dcerpc_binding *bind
|
||||
const struct ndr_interface_table *table, struct tevent_context *ev,
|
||||
struct loadparm_context *lp_ctx);
|
||||
struct composite_context* dcerpc_secondary_auth_connection_send(struct dcerpc_pipe *p,
|
||||
struct dcerpc_binding *binding,
|
||||
const struct dcerpc_binding *binding,
|
||||
const struct ndr_interface_table *table,
|
||||
struct cli_credentials *credentials,
|
||||
struct loadparm_context *lp_ctx);
|
||||
@ -239,7 +239,7 @@ NTSTATUS dcerpc_secondary_auth_connection_recv(struct composite_context *c,
|
||||
struct dcerpc_pipe **p);
|
||||
|
||||
struct composite_context* dcerpc_secondary_connection_send(struct dcerpc_pipe *p,
|
||||
struct dcerpc_binding *b);
|
||||
const struct dcerpc_binding *b);
|
||||
void dcerpc_log_packet(const char *lockdir,
|
||||
const struct ndr_interface_table *ndr,
|
||||
uint32_t opnum, uint32_t flags,
|
||||
|
@ -38,7 +38,7 @@
|
||||
|
||||
struct dcerpc_pipe_connect {
|
||||
struct dcecli_connection *conn;
|
||||
struct dcerpc_binding *binding;
|
||||
const struct dcerpc_binding *binding;
|
||||
const char *pipe_name;
|
||||
const struct ndr_interface_table *interface;
|
||||
struct cli_credentials *creds;
|
||||
|
@ -36,7 +36,7 @@
|
||||
struct sec_conn_state {
|
||||
struct dcerpc_pipe *pipe;
|
||||
struct dcerpc_pipe *pipe2;
|
||||
struct dcerpc_binding *binding;
|
||||
const struct dcerpc_binding *binding;
|
||||
struct socket_address *peer_addr;
|
||||
const char *localaddress;
|
||||
};
|
||||
@ -53,7 +53,7 @@ static void continue_pipe_open(struct composite_context *c);
|
||||
connection
|
||||
*/
|
||||
_PUBLIC_ struct composite_context* dcerpc_secondary_connection_send(struct dcerpc_pipe *p,
|
||||
struct dcerpc_binding *b)
|
||||
const struct dcerpc_binding *b)
|
||||
{
|
||||
struct composite_context *c;
|
||||
struct sec_conn_state *s;
|
||||
@ -232,7 +232,7 @@ _PUBLIC_ NTSTATUS dcerpc_secondary_connection_recv(struct composite_context *c,
|
||||
*/
|
||||
_PUBLIC_ NTSTATUS dcerpc_secondary_connection(struct dcerpc_pipe *p,
|
||||
struct dcerpc_pipe **p2,
|
||||
struct dcerpc_binding *b)
|
||||
const struct dcerpc_binding *b)
|
||||
{
|
||||
struct composite_context *c;
|
||||
|
||||
@ -248,7 +248,7 @@ _PUBLIC_ NTSTATUS dcerpc_secondary_connection(struct dcerpc_pipe *p,
|
||||
*/
|
||||
struct sec_auth_conn_state {
|
||||
struct dcerpc_pipe *pipe2;
|
||||
struct dcerpc_binding *binding;
|
||||
const struct dcerpc_binding *binding;
|
||||
const struct ndr_interface_table *table;
|
||||
struct cli_credentials *credentials;
|
||||
struct composite_context *ctx;
|
||||
@ -259,7 +259,7 @@ static void dcerpc_secondary_auth_connection_bind(struct composite_context *ctx)
|
||||
static void dcerpc_secondary_auth_connection_continue(struct composite_context *ctx);
|
||||
|
||||
_PUBLIC_ struct composite_context* dcerpc_secondary_auth_connection_send(struct dcerpc_pipe *p,
|
||||
struct dcerpc_binding *binding,
|
||||
const struct dcerpc_binding *binding,
|
||||
const struct ndr_interface_table *table,
|
||||
struct cli_credentials *credentials,
|
||||
struct loadparm_context *lp_ctx)
|
||||
|
@ -373,7 +373,7 @@ _PUBLIC_ NTSTATUS dcerpc_epm_map_binding(TALLOC_CTX *mem_ctx, struct dcerpc_bind
|
||||
|
||||
struct pipe_auth_state {
|
||||
struct dcerpc_pipe *pipe;
|
||||
struct dcerpc_binding *binding;
|
||||
const struct dcerpc_binding *binding;
|
||||
const struct ndr_interface_table *table;
|
||||
struct loadparm_context *lp_ctx;
|
||||
struct cli_credentials *credentials;
|
||||
@ -588,7 +588,7 @@ static void continue_auth_none(struct composite_context *ctx)
|
||||
is determined using credentials passed and binding flags.
|
||||
*/
|
||||
struct composite_context *dcerpc_pipe_auth_send(struct dcerpc_pipe *p,
|
||||
struct dcerpc_binding *binding,
|
||||
const struct dcerpc_binding *binding,
|
||||
const struct ndr_interface_table *table,
|
||||
struct cli_credentials *credentials,
|
||||
struct loadparm_context *lp_ctx)
|
||||
@ -741,7 +741,7 @@ NTSTATUS dcerpc_pipe_auth_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
|
||||
*/
|
||||
_PUBLIC_ NTSTATUS dcerpc_pipe_auth(TALLOC_CTX *mem_ctx,
|
||||
struct dcerpc_pipe **p,
|
||||
struct dcerpc_binding *binding,
|
||||
const struct dcerpc_binding *binding,
|
||||
const struct ndr_interface_table *table,
|
||||
struct cli_credentials *credentials,
|
||||
struct loadparm_context *lp_ctx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user