1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

librpc:core: Make dcesrv_find_endpoint public

Will be used from s3 implementation when a connection is passed to other
process where a particular association group was created.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri Oct 18 17:30:39 UTC 2019 on sn-devel-184
This commit is contained in:
Samuel Cabrero 2019-10-03 19:53:32 +02:00 committed by Andreas Schneider
parent e10028a050
commit 50f69b6054
2 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,7 @@ static bool endpoints_match(const struct dcerpc_binding *ep1,
/*
find an endpoint in the dcesrv_context
*/
static NTSTATUS dcesrv_find_endpoint(struct dcesrv_context *dce_ctx,
_PUBLIC_ NTSTATUS dcesrv_find_endpoint(struct dcesrv_context *dce_ctx,
const struct dcerpc_binding *ep_description,
struct dcesrv_endpoint **_out)
{

View File

@ -595,6 +595,9 @@ _PUBLIC_ NTSTATUS dcesrv_endpoint_connect(struct dcesrv_context *dce_ctx,
struct tevent_context *event_ctx,
uint32_t state_flags,
struct dcesrv_connection **_p);
_PUBLIC_ NTSTATUS dcesrv_find_endpoint(struct dcesrv_context *dce_ctx,
const struct dcerpc_binding *ep_description,
struct dcesrv_endpoint **_out);
_PUBLIC_ void dcesrv_terminate_connection(struct dcesrv_connection *dce_conn,
const char *reason);