From 8ec7aaef48c3d9a6b1f07602c5410b5524099d36 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 7 Jul 2010 15:24:30 -0400 Subject: s3-rpc_server: Moved ncacn_np declarations in common header file. Signed-off-by: Andreas Schneider --- source3/rpc_server/rpc_ncacn_np.h | 23 +++++++++++++++++++++++ source3/rpc_server/srv_netlog_nt.c | 1 + source3/rpc_server/srv_spoolss_util.c | 1 + 3 files changed, 25 insertions(+) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/rpc_ncacn_np.h b/source3/rpc_server/rpc_ncacn_np.h index 5bcc84c040..2487146967 100644 --- a/source3/rpc_server/rpc_ncacn_np.h +++ b/source3/rpc_server/rpc_ncacn_np.h @@ -29,10 +29,33 @@ struct np_proxy_state { struct tevent_queue *write_queue; }; +struct pipes_struct *make_internal_rpc_pipe_p(TALLOC_CTX *mem_ctx, + const struct ndr_syntax_id *syntax, + struct client_address *client_id, + const struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx); struct np_proxy_state *make_external_rpc_pipe_p(TALLOC_CTX *mem_ctx, const char *pipe_name, const struct tsocket_address *local_address, const struct tsocket_address *remote_address, struct auth_serversupplied_info *server_info); +NTSTATUS rpcint_binding_handle(TALLOC_CTX *mem_ctx, + const struct ndr_interface_table *ndr_table, + struct client_address *client_id, + const struct auth_serversupplied_info *server_info, + struct messaging_context *msg_ctx, + struct dcerpc_binding_handle **binding_handle); +NTSTATUS rpc_pipe_open_internal(TALLOC_CTX *mem_ctx, + const struct ndr_syntax_id *abstract_syntax, + struct auth_serversupplied_info *serversupplied_info, + struct client_address *client_id, + struct messaging_context *msg_ctx, + struct rpc_pipe_client **presult); +NTSTATUS rpc_pipe_open_interface(TALLOC_CTX *mem_ctx, + const struct ndr_syntax_id *syntax, + struct auth_serversupplied_info *server_info, + struct client_address *client_id, + struct messaging_context *msg_ctx, + struct rpc_pipe_client **cli_pipe); #endif /* _RPC_NCACN_NP_H_ */ diff --git a/source3/rpc_server/srv_netlog_nt.c b/source3/rpc_server/srv_netlog_nt.c index d0f9dc9dba..171f30ba75 100644 --- a/source3/rpc_server/srv_netlog_nt.c +++ b/source3/rpc_server/srv_netlog_nt.c @@ -35,6 +35,7 @@ #include "librpc/gen_ndr/messaging.h" #include "../lib/crypto/md4.h" #include "rpc_client/init_lsa.h" +#include "rpc_server/rpc_ncacn_np.h" extern userdom_struct current_user_info; diff --git a/source3/rpc_server/srv_spoolss_util.c b/source3/rpc_server/srv_spoolss_util.c index 78a332588c..2ebce91c52 100644 --- a/source3/rpc_server/srv_spoolss_util.c +++ b/source3/rpc_server/srv_spoolss_util.c @@ -27,6 +27,7 @@ #include "../librpc/gen_ndr/cli_winreg.h" #include "../librpc/gen_ndr/ndr_security.h" #include "secrets.h" +#include "rpc_server/rpc_ncacn_np.h" #define TOP_LEVEL_PRINT_KEY "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Print" #define TOP_LEVEL_PRINT_PRINTERS_KEY TOP_LEVEL_PRINT_KEY "\\Printers" -- cgit