From e532d96a26055d23450bfb3e9c28e0179ee9f2d2 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 13 Mar 2001 20:18:45 +0000 Subject: Move to a handle database per pipe name, not per pipe. Jeremy. (This used to be commit a24b248a77ccac364832ff7d4df083d437caf9ed) --- source3/include/ntdomain.h | 7 ++++--- source3/include/proto.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'source3/include') diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h index 799fa6d907..f56b765d29 100644 --- a/source3/include/ntdomain.h +++ b/source3/include/ntdomain.h @@ -153,8 +153,9 @@ struct policy }; struct handle_list { - struct policy *Policy; - size_t count; + struct policy *Policy; /* List of policies. */ + size_t count; /* Current number of handles. */ + size_t pipe_ref_count; /* Number of pipe handles referring to this list. */ }; /* Domain controller authentication protocol info */ @@ -246,7 +247,7 @@ typedef struct pipes_struct TALLOC_CTX *mem_ctx; /* handle database to use on this pipe. */ - struct handle_list pipe_handles; + struct handle_list *pipe_handles; } pipes_struct; diff --git a/source3/include/proto.h b/source3/include/proto.h index 006b26cf05..331d080f54 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -3454,7 +3454,7 @@ BOOL api_ntlsa_rpc(pipes_struct *p); /*The following definitions come from rpc_server/srv_lsa_hnd.c */ -void init_pipe_handles(pipes_struct *p); +BOOL init_pipe_handle_list(pipes_struct *p, char *pipe_name); BOOL create_policy_hnd(pipes_struct *p, POLICY_HND *hnd, void (*free_fn)(void *), void *data_ptr); BOOL find_policy_by_hnd(pipes_struct *p, POLICY_HND *hnd, void **data_p); BOOL close_policy_hnd(pipes_struct *p, POLICY_HND *hnd); -- cgit