]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: core: Move the s4 handles implementation to the RPC server core
authorSamuel Cabrero <scabrero@suse.de>
Tue, 29 Oct 2019 10:04:43 +0000 (11:04 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Sun, 24 May 2020 23:55:36 +0000 (23:55 +0000)
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/rpc/dcesrv_handles.c [moved from source4/rpc_server/handles.c with 99% similarity]
librpc/wscript_build
source4/rpc_server/wscript_build

similarity index 99%
rename from source4/rpc_server/handles.c
rename to librpc/rpc/dcesrv_handles.c
index f0947efc95b7ba5570c82fd55502e2988bc6cc8b..589a1ebb2080b9c9a2578d8b62ad3de1eb88bb4e 100644 (file)
@@ -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 <http://www.gnu.org/licenses/>.
 */
@@ -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);
index 928c96dbae4834347b7b9864e5c32c08bfdf854f..aa112890a7acd327903f1736eae6f8c42e061c7b 100644 (file)
@@ -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=[],
index 186e6a269e5665e7f9056954c30d2d59fca7ea3a..de55ad6239aec2145176c52db36d1e4babe0b6c2 100644 (file)
@@ -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',