]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
rpc_server: Remove unused make_server_pipes_struct()
authorVolker Lendecke <vl@samba.org>
Mon, 11 Jan 2021 20:37:08 +0000 (21:37 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 14 Jan 2021 13:29:35 +0000 (13:29 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Samuel Cabrero <scabrero@samba.org>
source3/rpc_server/rpc_server.c
source3/rpc_server/rpc_server.h

index f846c659be2f8281299e10c86747e0ee890ac0fc..497a7e4337409304184eab1010ffb2666d077cb5 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_RPC_SRV
 
-/* Creates a pipes_struct and initializes it with the information
- * sent from the client */
-int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
-                            struct messaging_context *msg_ctx,
-                            const char *pipe_name,
-                            enum dcerpc_transport_t transport,
-                            const struct tsocket_address *remote_address,
-                            const struct tsocket_address *local_address,
-                            struct pipes_struct **_p,
-                            int *perrno)
-{
-       struct pipes_struct *p;
-       int ret;
-
-       ret = make_base_pipes_struct(mem_ctx, msg_ctx, pipe_name,
-                                    transport,
-                                    remote_address, local_address, &p);
-       if (ret) {
-               *perrno = ret;
-               return -1;
-       }
-
-       *_p = p;
-       return 0;
-}
-
 /* Start listening on the appropriate unix socket and setup all is needed to
  * dispatch requests to the pipes rpc implementation */
 
index 0ac5ae5b5dc52eb0d2d13af140cc7e528bb6392c..4a3a5dae4bc1dd88ff7359409f5f16e6f415847e 100644 (file)
@@ -65,15 +65,6 @@ NTSTATUS dcerpc_ncacn_conn_init(TALLOC_CTX *mem_ctx,
                                void *termination_data,
                                struct dcerpc_ncacn_conn **out);
 
-int make_server_pipes_struct(TALLOC_CTX *mem_ctx,
-                            struct messaging_context *msg_ctx,
-                            const char *pipe_name,
-                            enum dcerpc_transport_t transport,
-                            const struct tsocket_address *remote_address,
-                            const struct tsocket_address *local_address,
-                            struct pipes_struct **_p,
-                            int *perrno);
-
 void set_incoming_fault(struct pipes_struct *p);
 void process_complete_pdu(struct pipes_struct *p, struct ncacn_packet *pkt);
 NTSTATUS dcesrv_create_ncacn_np_socket(struct dcesrv_endpoint *e, int *out_fd);