From: Samuel Cabrero Date: Tue, 29 Oct 2019 10:04:43 +0000 (+0100) Subject: librpc: core: Move the s4 handles implementation to the RPC server core X-Git-Tag: ldb-2.2.0~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f73efd7f3647d7aed2c36e6285d70c40d21114;p=thirdparty%2Fsamba.git librpc: core: Move the s4 handles implementation to the RPC server core Signed-off-by: Samuel Cabrero Reviewed-by: Andrew Bartlett --- diff --git a/source4/rpc_server/handles.c b/librpc/rpc/dcesrv_handles.c similarity index 99% rename from source4/rpc_server/handles.c rename to librpc/rpc/dcesrv_handles.c index f0947efc95b..589a1ebb208 100644 --- a/source4/rpc_server/handles.c +++ b/librpc/rpc/dcesrv_handles.c @@ -1,20 +1,20 @@ -/* +/* Unix SMB/CIFS implementation. server side dcerpc handle code Copyright (C) Andrew Tridgell 2003 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -70,7 +70,7 @@ struct dcesrv_handle *dcesrv_handle_create(struct dcesrv_call_state *call, h->iface = context->iface; h->wire_handle.handle_type = handle_type; h->wire_handle.uuid = GUID_random(); - + DLIST_ADD(context->conn->assoc_group->handles, h); talloc_set_destructor(h, dcesrv_handle_destructor); diff --git a/librpc/wscript_build b/librpc/wscript_build index 928c96dbae4..aa112890a7a 100644 --- a/librpc/wscript_build +++ b/librpc/wscript_build @@ -661,6 +661,7 @@ bld.SAMBA_LIBRARY('dcerpc-server-core', rpc/dcesrv_auth.c rpc/dcesrv_mgmt.c rpc/dcesrv_reply.c + rpc/dcesrv_handles.c ''', deps='ndr dcerpc-binding samba-util-core gnutls GNUTLS_HELPERS', pc_files=[], diff --git a/source4/rpc_server/wscript_build b/source4/rpc_server/wscript_build index 186e6a269e5..de55ad6239a 100644 --- a/source4/rpc_server/wscript_build +++ b/source4/rpc_server/wscript_build @@ -22,7 +22,7 @@ bld.SAMBA_SUBSYSTEM('DCERPC_COMMON', ) bld.SAMBA_LIBRARY('dcerpc_server', - source='dcerpc_server.c handles.c', + source='dcerpc_server.c', pc_files='dcerpc_server.pc', deps='LIBCLI_AUTH ndr samba_server_gensec service auth', public_deps='dcerpc dcerpc-server-core',