mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
r3466: split out request.h, signing.h, and smb_server.h
(This used to be commit 7c4e6ebf05790dd6e29896dd316db0fff613aa4e)
This commit is contained in:
parent
8867664ad2
commit
aa34fcebf8
@ -30,7 +30,7 @@ struct smbcli_state {
|
||||
struct smbcli_transport *transport;
|
||||
struct smbcli_session *session;
|
||||
struct smbcli_tree *tree;
|
||||
struct substitute_context substitute;
|
||||
struct substitute_context *substitute;
|
||||
};
|
||||
|
||||
#endif /* _SMBCLI_CONTEXT_H */
|
||||
|
@ -181,6 +181,8 @@ extern int errno;
|
||||
#include "pstring.h"
|
||||
|
||||
/* Lists, trees, caching, database... */
|
||||
#include "dynconfig.h"
|
||||
#include "version.h"
|
||||
#include "xfile.h"
|
||||
#include "talloc.h"
|
||||
#include "lib/ldb/include/ldb.h"
|
||||
@ -192,50 +194,32 @@ extern int errno;
|
||||
#include "trans2.h"
|
||||
#include "nterr.h"
|
||||
#include "charset.h"
|
||||
#include "dynconfig.h"
|
||||
|
||||
#include "version.h"
|
||||
#include "rewrite.h"
|
||||
#include "smb.h"
|
||||
#include "ads.h"
|
||||
#include "lib/socket/socket.h"
|
||||
#include "libcli/ldap/ldap.h"
|
||||
#include "nameserv.h"
|
||||
|
||||
#include "byteorder.h"
|
||||
|
||||
#include "module.h"
|
||||
|
||||
#include "mutex.h"
|
||||
|
||||
#include "structs.h"
|
||||
#include "librpc/ndr/libndr.h"
|
||||
#include "librpc/ndr/ndr_sec.h"
|
||||
#include "librpc/gen_ndr/ndr_misc.h"
|
||||
#include "librpc/gen_ndr/ndr_dcerpc.h"
|
||||
#include "librpc/rpc/dcerpc.h"
|
||||
#include "librpc/gen_ndr/tables.h"
|
||||
|
||||
#include "smb_interfaces.h"
|
||||
#include "smbd/server.h"
|
||||
#include "smbd/service.h"
|
||||
#include "rpc_server/dcerpc_server.h"
|
||||
#include "request.h"
|
||||
#include "signing.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
#include "structs.h"
|
||||
#include "ntvfs/ntvfs.h"
|
||||
#include "cli_context.h"
|
||||
|
||||
#include "libnet/libnet.h"
|
||||
#include "utils/net/net.h"
|
||||
|
||||
#include "nsswitch/winbind_client.h"
|
||||
|
||||
/* hmm, this really is getting ugly isn't it .... we probably need to
|
||||
have some way to have subsystem includes without including it
|
||||
globally */
|
||||
#include "ntvfs/posix/vfs_posix.h"
|
||||
|
||||
#define malloc_p(type) (type *)malloc(sizeof(type))
|
||||
#define malloc_array_p(type, count) (type *)realloc_array(NULL, sizeof(type), count)
|
||||
#define realloc_p(p, type, count) (type *)realloc_array(p, sizeof(type), count)
|
||||
|
@ -1,3 +1,5 @@
|
||||
#ifndef _REQUEST_H
|
||||
#define _REQUEST_H
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
SMB parameters and setup
|
||||
@ -19,6 +21,8 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "signing.h"
|
||||
|
||||
/*
|
||||
Shared state structure between client and server, representing the basic packet.
|
||||
*/
|
||||
@ -55,3 +59,4 @@ struct request_buffer {
|
||||
char *ptr;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +1,5 @@
|
||||
#ifndef _SIGNING_H
|
||||
#define _SIGNING_H
|
||||
/*
|
||||
Unix SMB/CIFS implementation.
|
||||
SMB Signing
|
||||
@ -35,3 +37,4 @@ struct smb_signing_context {
|
||||
BOOL seen_valid; /* Have I ever seen a validly signed packet? */
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -77,3 +77,16 @@ struct registry_value;
|
||||
|
||||
struct rap_NetShareEnum;
|
||||
struct rap_NetServerEnum2;
|
||||
|
||||
struct smbsrv_request;
|
||||
struct smbsrv_tcon;
|
||||
struct smb_signing_context;
|
||||
struct smbsrv_connection;
|
||||
struct auth_context;
|
||||
struct request_buffer;
|
||||
|
||||
struct pvfs_dir;
|
||||
struct pvfs_filename;
|
||||
struct pvfs_state;
|
||||
struct pvfs_file;
|
||||
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/* oh bugger - I realy didn't want to have a top-level context
|
||||
anywhere, but until we change all lp_*() calls to take a context
|
||||
|
@ -21,6 +21,8 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "request.h"
|
||||
|
||||
struct smbcli_tree; /* forward declare */
|
||||
struct smbcli_request; /* forward declare */
|
||||
struct smbcli_session; /* forward declare */
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/* this is stored in ntvfs_private */
|
||||
struct cvfs_private {
|
||||
|
@ -28,6 +28,7 @@
|
||||
#include "includes.h"
|
||||
#include "system/filesys.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/* this is the private structure used to keep the state of an open
|
||||
ipc$ connection. It needs to keep information about all open
|
||||
|
@ -25,6 +25,7 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/* this is stored in ntvfs_private */
|
||||
struct nbench_private {
|
||||
|
@ -25,6 +25,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
|
||||
/* the list of currently registered NTVFS backends, note that there
|
||||
|
@ -32,6 +32,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/*
|
||||
see if a filename ends in EXE COM DLL or SYM. This is needed for the
|
||||
|
@ -20,6 +20,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/* connect/disconnect */
|
||||
NTSTATUS ntvfs_connect(struct smbsrv_request *req, const char *sharename)
|
||||
|
@ -23,6 +23,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
NTSTATUS ntvfs_async_state_push(struct smbsrv_request *req,
|
||||
void *private_data,
|
||||
|
@ -23,6 +23,8 @@
|
||||
#ifndef _VFS_POSIX_H_
|
||||
#define _VFS_POSIX_H_
|
||||
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/* this is the private structure for the posix vfs backend. It is used
|
||||
to hold per-connection (per tree connect) state information */
|
||||
struct pvfs_state {
|
||||
|
@ -24,6 +24,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "ioctl.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
/*
|
||||
connect to a share - used when a tree_connect operation comes
|
||||
|
@ -30,6 +30,7 @@
|
||||
#include "svfs.h"
|
||||
#include "system/time.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
#ifndef O_DIRECTORY
|
||||
#define O_DIRECTORY 0
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "auth/auth.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
struct unixuid_private {
|
||||
void *samctx;
|
||||
|
@ -22,6 +22,8 @@
|
||||
#include "includes.h"
|
||||
#include "system/filesys.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
init the tcon structures
|
||||
|
@ -21,6 +21,8 @@
|
||||
#include "includes.h"
|
||||
#include "auth/auth.h"
|
||||
#include "asn_1.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/* initialise the auth_context for this server and return the cryptkey */
|
||||
static void get_challenge(struct smbsrv_connection *smb_conn, char buff[8])
|
||||
|
@ -23,6 +23,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
|
||||
#define CHECK_MIN_BLOB_SIZE(blob, size) do { \
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -24,6 +24,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/* useful way of catching wct errors with file and line number */
|
||||
#define REQ_CHECK_WCT(req, wcount) do { \
|
||||
|
@ -24,6 +24,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/* we over allocate the data buffer to prevent too many realloc calls */
|
||||
#define REQ_OVER_ALLOCATION 256
|
||||
|
@ -23,6 +23,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/* check req->async.status and if not OK then send an error reply */
|
||||
#define CHECK_ASYNC_STATUS do { \
|
||||
|
@ -19,6 +19,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -24,6 +24,8 @@
|
||||
#include "includes.h"
|
||||
#include "auth/auth.h"
|
||||
#include "asn_1.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/*
|
||||
setup the OS, Lanman and domain portions of a session setup reply
|
||||
|
@ -19,6 +19,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/*
|
||||
sign an outgoing packet
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "includes.h"
|
||||
#include "system/time.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -20,6 +20,9 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include "request.h"
|
||||
#include "smbd/process_model.h"
|
||||
|
||||
/*
|
||||
this header declares the core context structures associated with smb
|
||||
sockets, tree connects, requests etc
|
||||
@ -140,8 +143,6 @@ struct substitute_context {
|
||||
char *user_name;
|
||||
};
|
||||
|
||||
#include "smbd/process_model.h"
|
||||
|
||||
/* smb server context structure. This should contain all the state
|
||||
* information associated with a SMB server connection
|
||||
*/
|
||||
|
@ -21,6 +21,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
put a dos date into a buffer (time/date format)
|
||||
|
@ -22,6 +22,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
|
||||
|
||||
|
||||
#define CHECK_MIN_BLOB_SIZE(blob, size) do { \
|
||||
|
@ -20,6 +20,8 @@
|
||||
*/
|
||||
|
||||
#include "includes.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
#include "smbd/process_model.h"
|
||||
|
||||
/*
|
||||
setup the events for the chosen process model
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
#include "process_model.h"
|
||||
|
||||
|
||||
/*
|
||||
|
@ -22,6 +22,8 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "dlinklist.h"
|
||||
#include "smb_server/smb_server.h"
|
||||
#include "process_model.h"
|
||||
|
||||
/*
|
||||
called when the process model is selected
|
||||
|
@ -24,6 +24,7 @@
|
||||
#include "includes.h"
|
||||
#include "system/dir.h"
|
||||
#include "dlinklist.h"
|
||||
#include "process_model.h"
|
||||
|
||||
struct server_context *server_service_startup(const char *model)
|
||||
{
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
#include "includes.h"
|
||||
#include "system/time.h"
|
||||
#include "request.h"
|
||||
#include "libcli/raw/libcliraw.h"
|
||||
|
||||
#define NSERVERS 2
|
||||
|
Loading…
x
Reference in New Issue
Block a user