librpc:core: Make dcesrv_find_endpoint public
authorSamuel Cabrero <scabrero@samba.org>
Thu, 3 Oct 2019 17:53:32 +0000 (19:53 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 18 Oct 2019 17:30:39 +0000 (17:30 +0000)
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

librpc/rpc/dcesrv_core.c
librpc/rpc/dcesrv_core.h

index 526c86ad97c9b954867b81d8a3eb4a86d030e7d4..902e82887f7308ac75d2fe75050445a19816f915 100644 (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)
 {
index 663a09b418afb527e4df17e3188835532162013f..fc2651bd9d3ba61e306d13be3575499cc8a0b4b7 100644 (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);