s3-rpc_server: Make make_server_pipes_struct a shared function.
authorAndreas Schneider <asn@samba.org>
Wed, 25 Sep 2013 14:33:00 +0000 (16:33 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 29 Oct 2013 14:50:50 +0000 (15:50 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/rpc_server.c
source3/rpc_server/rpc_server.h

index fa3c870..679e21d 100644 (file)
@@ -52,16 +52,16 @@ static NTSTATUS auth_anonymous_session_info(TALLOC_CTX *mem_ctx,
 
 /* Creates a pipes_struct and initializes it with the information
  * sent from the client */
-static int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
-                                   struct messaging_context *msg_ctx,
-                                   const char *pipe_name,
-                                   enum dcerpc_transport_t transport,
-                                   bool ncalrpc_as_system,
-                                   const struct tsocket_address *local_address,
-                                   const struct tsocket_address *remote_address,
-                                   struct auth_session_info *session_info,
-                                   struct pipes_struct **_p,
-                                   int *perrno)
+int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
+                            struct messaging_context *msg_ctx,
+                            const char *pipe_name,
+                            enum dcerpc_transport_t transport,
+                            bool ncalrpc_as_system,
+                            const struct tsocket_address *local_address,
+                            const struct tsocket_address *remote_address,
+                            struct auth_session_info *session_info,
+                            struct pipes_struct **_p,
+                            int *perrno)
 {
        struct pipes_struct *p;
        int ret;
index 308354d..9d06161 100644 (file)
@@ -25,6 +25,17 @@ struct pipes_struct;
 typedef bool (*dcerpc_ncacn_disconnect_fn)(struct pipes_struct *p);
 typedef void (named_pipe_termination_fn)(void *private_data);
 
+int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
+                            struct messaging_context *msg_ctx,
+                            const char *pipe_name,
+                            enum dcerpc_transport_t transport,
+                            bool ncalrpc_as_system,
+                            const struct tsocket_address *local_address,
+                            const struct tsocket_address *remote_address,
+                            struct auth_session_info *session_info,
+                            struct pipes_struct **_p,
+                            int *perrno);
+
 void set_incoming_fault(struct pipes_struct *p);
 void process_complete_pdu(struct pipes_struct *p);
 int create_named_pipe_socket(const char *pipe_name);