mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
libcli: move some common SMB and SMB2 stuff into libcli/smb/
This will hold code that's shared between source3 and source4. metze
This commit is contained in:
27
libcli/smb/smb_common.h
Normal file
27
libcli/smb/smb_common.h
Normal file
@ -0,0 +1,27 @@
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
|
||||
SMB and SMB2 common header
|
||||
|
||||
Copyright (C) Stefan Metzmacher 2009
|
||||
|
||||
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/>.
|
||||
*/
|
||||
|
||||
#ifndef __LIBCLI_SMB_SMB_COMMON_H__
|
||||
#define __LIBCLI_SMB_SMB_COMMON_H__
|
||||
|
||||
#include "../libcli/smb/smb2_constants.h"
|
||||
|
||||
#endif
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_oplock_break_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
|
||||
uint16_t in_flags,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_find_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_flush_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_getinfo_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
struct smb_request *smbd_smb2_fake_smb_request(struct smbd_smb2_request *req)
|
||||
{
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_ioctl_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
NTSTATUS smbd_smb2_request_process_keepalive(struct smbd_smb2_request *req)
|
||||
{
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
struct smbd_smb2_lock_element {
|
||||
uint64_t offset;
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
extern enum protocol_types Protocol;
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_notify_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
#include "../lib/tsocket/tsocket.h"
|
||||
|
||||
bool smbd_is_smb2_header(const uint8_t *inbuf, size_t size)
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static NTSTATUS smbd_smb2_session_setup(struct smbd_smb2_request *req,
|
||||
uint64_t in_session_id,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_setinfo_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
#include "../lib/crypto/crypto.h"
|
||||
|
||||
NTSTATUS smb2_signing_sign_pdu(DATA_BLOB session_key,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static NTSTATUS smbd_smb2_tree_connect(struct smbd_smb2_request *req,
|
||||
const char *in_path,
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "smbd/globals.h"
|
||||
#include "../source4/libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
|
||||
static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
|
@ -23,7 +23,7 @@
|
||||
#define __LIBCLI_RAW_INTERFACES_H__
|
||||
|
||||
#include "libcli/raw/smb.h"
|
||||
#include "libcli/smb2/smb2_constants.h"
|
||||
#include "../libcli/smb/smb_common.h"
|
||||
#include "librpc/gen_ndr/misc.h" /* for struct GUID */
|
||||
|
||||
/* this structure is just a wrapper for a string, the only reason we
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
#include "libcli/raw/request.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "libcli/smb2/smb2_constants.h"
|
||||
|
||||
struct smb2_handle;
|
||||
struct smb2_lease_break;
|
||||
|
Reference in New Issue
Block a user