]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Move lanman.c -> smb1_lanman.c
authorDavid Mulder <dmulder@suse.com>
Fri, 11 Mar 2022 15:50:12 +0000 (08:50 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:29 +0000 (17:37 +0000)
lanman.c only contains smb1 code.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/proto.h
source3/smbd/smb1_lanman.c [moved from source3/smbd/lanman.c with 100% similarity]
source3/smbd/smb1_lanman.h [new file with mode: 0644]
source3/smbd/smbd.h
source3/wscript_build

index 45553362f4e3fa849d906861850ea129bdf32108..acb6a63f7fa504a43b0e3b79a54f7541aae9bb80 100644 (file)
@@ -486,14 +486,6 @@ void send_trans_reply(connection_struct *conn,
 void reply_trans(struct smb_request *req);
 void reply_transs(struct smb_request *req);
 
-/* The following definitions come from smbd/lanman.c  */
-
-void api_reply(connection_struct *conn, uint64_t vuid,
-              struct smb_request *req,
-              char *data, char *params,
-              int tdscnt, int tpscnt,
-              int mdrcnt, int mprcnt);
-
 /* The following definitions come from smbd/mangle.c  */
 
 void mangle_reset_cache(void);
diff --git a/source3/smbd/smb1_lanman.h b/source3/smbd/smb1_lanman.h
new file mode 100644 (file)
index 0000000..9e7ecb4
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+   Unix SMB/CIFS implementation.
+   Inter-process communication and named pipe handling
+   Copyright (C) Andrew Tridgell 1992-1998
+   Copyright (C) Jeremy Allison 2007.
+
+   SMB Version handling
+   Copyright (C) John H Terpstra 1995-1998
+
+   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/>.
+   */
+
+void api_reply(connection_struct *conn, uint64_t vuid,
+              struct smb_request *req,
+              char *data, char *params,
+              int tdscnt, int tpscnt,
+              int mdrcnt, int mprcnt);
index 7bfe90adb5e15cdadf54f27db099639ebb58eeee..3feecb2a17c283930b18945f4df377896d729c0c 100644 (file)
@@ -29,6 +29,7 @@ struct dptr_struct;
 #if defined(WITH_SMB1SERVER)
 #include "smbd/smb1_message.h"
 #include "smbd/smb1_sesssetup.h"
+#include "smbd/smb1_lanman.h"
 #endif
 
 struct trans_state {
index 5dffae3ab52097921104c416c2166bd4926258c8..7a608d08b60bafc65bd5ebb3e2008acd1b1f54bb 100644 (file)
@@ -612,7 +612,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
                           smbd/share_access.c
                           smbd/fileio.c
                           smbd/ipc.c
-                          smbd/lanman.c
+                          smbd/smb1_lanman.c
                           smbd/negprot.c
                           smbd/smb1_message.c
                           smbd/nttrans.c