1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-24 10:50:22 +03:00

smbd: Move negprot.c -> smb1_negprot.c

negprot.c only contains smb1 code.

Signed-off-by: David Mulder <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
David Mulder 2022-03-11 10:20:48 -07:00 committed by Jeremy Allison
parent dd633d561b
commit 1139ad7b8b
5 changed files with 23 additions and 5 deletions

View 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);

View File

@ -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);

View 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 {

View 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