From 8e235df2de96954af0bd8dc1cc464f6d9d834372 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 9 Jul 2010 19:34:34 -0400 Subject: s3-dcerpc: Use dcerpc_pull_ncacn_packet() to unmarshall dceprc requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/include/ntdomain.h | 3 +++ source3/include/proto.h | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'source3/include') diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index e96b9b553a..18819dee21 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -222,6 +222,9 @@ typedef struct pipes_struct { /* handle database to use on this pipe. */ struct handle_list *pipe_handles; + /* call id retrieved from the pdu header */ + uint32_t call_id; + /* operation number retrieved from the rpc header */ uint16_t opnum; diff --git a/source3/include/proto.h b/source3/include/proto.h index 1b8aa485d5..6bc656824d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -5156,7 +5156,7 @@ void *_policy_handle_find(struct pipes_struct *p, /* The following definitions come from rpc_server/srv_pipe.c */ bool create_next_pdu(pipes_struct *p); -bool api_pipe_bind_auth3(pipes_struct *p, prs_struct *rpc_in_p); +bool api_pipe_bind_auth3(pipes_struct *p, struct ncacn_packet *pkt); bool setup_fault_pdu(pipes_struct *p, NTSTATUS status); NTSTATUS rpc_pipe_register_commands(int version, const char *clnt, const char *srv, @@ -5167,13 +5167,13 @@ NTSTATUS rpc_srv_register(int version, const char *clnt, const struct ndr_interface_table *iface, const struct api_struct *cmds, int size); bool is_known_pipename(const char *cli_filename, struct ndr_syntax_id *syntax); -bool api_pipe_bind_req(pipes_struct *p, prs_struct *rpc_in_p); -bool api_pipe_alter_context(pipes_struct *p, prs_struct *rpc_in_p); +bool api_pipe_bind_req(pipes_struct *p, struct ncacn_packet *pkt); +bool api_pipe_alter_context(pipes_struct *p, struct ncacn_packet *pkt); bool api_pipe_ntlmssp_auth_process(pipes_struct *p, prs_struct *rpc_in, uint32 *p_ss_padding_len, NTSTATUS *pstatus); bool api_pipe_schannel_process(pipes_struct *p, prs_struct *rpc_in, uint32 *p_ss_padding_len); void free_pipe_rpc_context( PIPE_RPC_FNS *list ); -bool api_pipe_request(pipes_struct *p); +bool api_pipe_request(pipes_struct *p, struct ncacn_packet *pkt); /* The following definitions come from rpc_server/srv_pipe_hnd.c */ -- cgit