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

index e58a6630ed52e3af79f95a1e52a03b29989a108d..5280c486885c0eb92973c5a4d2343e659212227c 100644 (file)
@@ -580,10 +580,6 @@ NTSTATUS create_conn_struct_tos_cwd(struct messaging_context *msg,
                                    const struct auth_session_info *session_info,
                                    struct conn_struct_tos **_c);
 
-/* The following definitions come from smbd/negprot.c  */
-
-void reply_negprot(struct smb_request *req);
-
 /* The following definitions come from smbd/notify.c  */
 
 bool change_notify_fsp_has_changes(struct files_struct *fsp);
diff --git a/source3/smbd/smb1_negprot.h b/source3/smbd/smb1_negprot.h
new file mode 100644 (file)
index 0000000..2b23a04
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+   Unix SMB/CIFS implementation.
+   negprot reply code
+   Copyright (C) Andrew Tridgell 1992-1998
+   Copyright (C) Volker Lendecke 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_negprot(struct smb_request *req);
index 1e55a4df73a199fc497bbfe4a0ca19f28fc1175d..2b63da4a798a764794a66756472c7e70a297a531 100644 (file)
@@ -32,6 +32,7 @@ struct dptr_struct;
 #include "smbd/smb1_lanman.h"
 #include "smbd/smb1_aio.h"
 #include "smbd/smb1_ipc.h"
+#include "smbd/smb1_negprot.h"
 #endif
 
 struct trans_state {
index 4cf84176e5fbc6e13a6094fe0615321a2ce75a77..a2d1e47c3663a86b436b1630671901230662651d 100644 (file)
@@ -605,6 +605,7 @@ if bld.CONFIG_SET('WITH_SMB1SERVER'):
                    smbd/smb1_utils.c
                    smbd/smb1_aio.c
                    smbd/smb1_ipc.c
+                   smbd/smb1_negprot.c
     '''
 else:
     SMB1_SOURCES = ''
@@ -624,7 +625,6 @@ bld.SAMBA3_LIBRARY('smbd_base',
                           smbd/share_access.c
                           smbd/fileio.c
                           smbd/smb2_ipc.c
-                          smbd/negprot.c
                           smbd/nttrans.c
                           smbd/pipes.c
                           smbd/reply.c