struct smbcli_transport *transport;
struct smbcli_session *session;
struct smbcli_tree *tree;
- struct substitute_context substitute;
+ struct substitute_context *substitute;
};
#endif /* _SMBCLI_CONTEXT_H */
#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"
#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)
+#ifndef _REQUEST_H
+#define _REQUEST_H
/*
Unix SMB/CIFS implementation.
SMB parameters and setup
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "signing.h"
+
/*
Shared state structure between client and server, representing the basic packet.
*/
char *ptr;
};
+#endif
+#ifndef _SIGNING_H
+#define _SIGNING_H
/*
Unix SMB/CIFS implementation.
SMB Signing
BOOL seen_valid; /* Have I ever seen a validly signed packet? */
};
+#endif
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;
+
#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
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 */
#include "includes.h"
#include "libcli/raw/libcliraw.h"
+#include "smb_server/smb_server.h"
/* this is stored in ntvfs_private */
struct cvfs_private {
#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
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
/* this is stored in ntvfs_private */
struct nbench_private {
#include "includes.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
+
/* the list of currently registered NTVFS backends, note that there
*/
#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
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
/* connect/disconnect */
NTSTATUS ntvfs_connect(struct smbsrv_request *req, const char *sharename)
#include "includes.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
+
NTSTATUS ntvfs_async_state_push(struct smbsrv_request *req,
void *private_data,
#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 {
#include "includes.h"
#include "ioctl.h"
+#include "smb_server/smb_server.h"
/*
connect to a share - used when a tree_connect operation comes
#include "svfs.h"
#include "system/time.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
#ifndef O_DIRECTORY
#define O_DIRECTORY 0
#include "includes.h"
#include "auth/auth.h"
+#include "smb_server/smb_server.h"
struct unixuid_private {
void *samctx;
#include "includes.h"
#include "system/filesys.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
+
/****************************************************************************
init the tcon structures
#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])
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
#define CHECK_MIN_BLOB_SIZE(blob, size) do { \
#include "includes.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
/****************************************************************************
*/
#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 { \
#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
*/
#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 { \
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
/****************************************************************************
#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
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
/*
sign an outgoing packet
#include "includes.h"
#include "system/time.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
/*
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
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
*/
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
/*******************************************************************
put a dos date into a buffer (time/date format)
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+
#define CHECK_MIN_BLOB_SIZE(blob, size) do { \
*/
#include "includes.h"
+#include "smb_server/smb_server.h"
+#include "smbd/process_model.h"
/*
setup the events for the chosen process model
#include "includes.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
+#include "process_model.h"
/*
#include "includes.h"
#include "dlinklist.h"
+#include "smb_server/smb_server.h"
+#include "process_model.h"
/*
called when the process model is selected
#include "includes.h"
#include "system/dir.h"
#include "dlinklist.h"
+#include "process_model.h"
struct server_context *server_service_startup(const char *model)
{
#include "includes.h"
#include "system/time.h"
+#include "request.h"
#include "libcli/raw/libcliraw.h"
#define NSERVERS 2