diff options
author | Samuel Cabrero <scabrero@samba.org> | 2019-10-03 19:53:32 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-10-18 17:30:39 +0000 |
commit | 50f69b60549b5d963e83a96315953e074517c096 (patch) | |
tree | a59496f387dede01831fe229bc220233da033024 /librpc | |
parent | e10028a05000f6b7a2a8252352ad5f720ad23e86 (diff) | |
download | samba-50f69b60549b5d963e83a96315953e074517c096.tar.gz |
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
Diffstat (limited to 'librpc')
-rw-r--r-- | librpc/rpc/dcesrv_core.c | 2 | ||||
-rw-r--r-- | librpc/rpc/dcesrv_core.h | 3 |
2 files changed, 4 insertions, 1 deletions
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); |