diff options
Diffstat (limited to 'source3/rpc_server/rpc_ncacn_np.c')
-rw-r--r-- | source3/rpc_server/rpc_ncacn_np.c | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np.c b/source3/rpc_server/rpc_ncacn_np.c index d4f3833366..dea079f3f5 100644 --- a/source3/rpc_server/rpc_ncacn_np.c +++ b/source3/rpc_server/rpc_ncacn_np.c @@ -39,83 +39,6 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_SRV -static struct pipes_struct *InternalPipes; - -/* TODO - * the following prototypes are declared here to avoid - * code being moved about too much for a patch to be - * disrupted / less obvious. - * - * these functions, and associated functions that they - * call, should be moved behind a .so module-loading - * system _anyway_. so that's the next step... - */ - -/**************************************************************************** - Internal Pipe iterator functions. -****************************************************************************/ - -struct pipes_struct *get_first_internal_pipe(void) -{ - return InternalPipes; -} - -struct pipes_struct *get_next_internal_pipe(struct pipes_struct *p) -{ - return p->next; -} - -static void free_pipe_rpc_context_internal( PIPE_RPC_FNS *list ) -{ - PIPE_RPC_FNS *tmp = list; - PIPE_RPC_FNS *tmp2; - - while (tmp) { - tmp2 = tmp->next; - SAFE_FREE(tmp); - tmp = tmp2; - } - - return; -} - -bool check_open_pipes(void) -{ - struct pipes_struct *p; - - for (p = InternalPipes; p != NULL; p = p->next) { - if (num_pipe_handles(p) != 0) { - return true; - } - } - return false; -} - -/**************************************************************************** - Close an rpc pipe. -****************************************************************************/ - -int close_internal_rpc_pipe_hnd(struct pipes_struct *p) -{ - if (!p) { - DEBUG(0,("Invalid pipe in close_internal_rpc_pipe_hnd\n")); - return False; - } - - TALLOC_FREE(p->auth.auth_ctx); - - /* Free the handles database. */ - close_policy_by_pipe(p); - - free_pipe_rpc_context_internal( p->contexts ); - - DLIST_REMOVE(InternalPipes, p); - - ZERO_STRUCTP(p); - - return 0; -} - /**************************************************************************** Make an internal namedpipes structure ****************************************************************************/ |