From 50f69b60549b5d963e83a96315953e074517c096 Mon Sep 17 00:00:00 2001 From: Samuel Cabrero Date: Thu, 3 Oct 2019 19:53:32 +0200 Subject: [PATCH] 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 Reviewed-by: Andrew Bartlett Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Oct 18 17:30:39 UTC 2019 on sn-devel-184 --- librpc/rpc/dcesrv_core.c | 2 +- librpc/rpc/dcesrv_core.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/librpc/rpc/dcesrv_core.c b/librpc/rpc/dcesrv_core.c index 526c86ad97c..902e82887f7 100644 --- a/librpc/rpc/dcesrv_core.c +++ b/librpc/rpc/dcesrv_core.c @@ -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) { diff --git a/librpc/rpc/dcesrv_core.h b/librpc/rpc/dcesrv_core.h index 663a09b418a..fc2651bd9d3 100644 --- a/librpc/rpc/dcesrv_core.h +++ b/librpc/rpc/dcesrv_core.h @@ -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); -- 2.11.4.GIT