1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-26 23:33:15 +03:00

s3:rpc_server: Add a function to setup the endpoints

The pidl-generated initialization function for each endpoint server will
register the RPC interface in all endpoints defined in the idl file.

The interface registration code will create the endpoint if it does not
exists (as an endpoint can serve multiple interfaces) and will add it to
the endpoint list exiting in the dcesrv_context.

This commit adds a generic dcesrv_setup_endpoint_sockets function which
will be used by embedded services and non-preforking external daemons to
setup the sockets regardless the transport.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Samuel Cabrero
2019-02-27 14:01:11 +01:00
committed by Samuel Cabrero
parent 4e7670ed12
commit c97a77297d
3 changed files with 84 additions and 4 deletions

View File

@@ -22,9 +22,10 @@
#include "librpc/rpc/rpc_common.h" /* For enum dcerpc_transport_t */
#include "librpc/rpc/dcesrv_core.h"
struct pipes_struct;
struct auth_session_info;
struct dcesrv_call_state;
struct cli_credentials;
typedef void (*dcerpc_ncacn_termination_fn)(struct pipes_struct *, void *);