]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Move sesssetup.c -> smb1_sesssetup.c
authorDavid Mulder <dmulder@suse.com>
Fri, 11 Mar 2022 15:46:46 +0000 (08:46 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 7 Apr 2022 17:37:29 +0000 (17:37 +0000)
sesssetup.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_sesssetup.c [moved from source3/smbd/sesssetup.c with 100% similarity]
source3/smbd/smb1_sesssetup.h [new file with mode: 0644]
source3/smbd/smbd.h
source3/wscript_build

index 700eddcc7f699f2d77c738a7455abbb6a3bd349a..45553362f4e3fa849d906861850ea129bdf32108 100644 (file)
@@ -1132,10 +1132,6 @@ int list_sessions(TALLOC_CTX *mem_ctx, struct sessionid **session_list);
 int find_sessions(TALLOC_CTX *mem_ctx, const char *username,
                  const char *machine, struct sessionid **session_list);
 
-/* The following definitions come from smbd/sesssetup.c  */
-
-void reply_sesssetup_and_X(struct smb_request *req);
-
 /* The following definitions come from smbd/share_access.c  */
 
 bool token_contains_name_in_list(const char *username,
diff --git a/source3/smbd/smb1_sesssetup.h b/source3/smbd/smb1_sesssetup.h
new file mode 100644 (file)
index 0000000..6f1324a
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+   Unix SMB/CIFS implementation.
+   handle SMBsessionsetup
+   Copyright (C) Andrew Tridgell 1998-2001
+   Copyright (C) Andrew Bartlett      2001
+   Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2002
+   Copyright (C) Luke Howard          2003
+   Copyright (C) Volker Lendecke      2007
+   Copyright (C) Jeremy Allison              2007
+
+   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 reply_sesssetup_and_X(struct smb_request *req);
index feabb5e834c3acc6b466e8ed600076eaf7e1bdf4..7bfe90adb5e15cdadf54f27db099639ebb58eeee 100644 (file)
@@ -28,6 +28,7 @@ struct dptr_struct;
 #include "smbd/fd_handle.h"
 #if defined(WITH_SMB1SERVER)
 #include "smbd/smb1_message.h"
+#include "smbd/smb1_sesssetup.h"
 #endif
 
 struct trans_state {
index 9e1b93e38badeaaf6814a5138347fbe589b5ebd2..5dffae3ab52097921104c416c2166bd4926258c8 100644 (file)
@@ -618,7 +618,7 @@ bld.SAMBA3_LIBRARY('smbd_base',
                           smbd/nttrans.c
                           smbd/pipes.c
                           smbd/reply.c
-                          smbd/sesssetup.c
+                          smbd/smb1_sesssetup.c
                           smbd/trans2.c
                           smbd/uid.c
                           smbd/dosmode.c