Apache-AuthenNTLM
view release on metacpan or search on metacpan
smb/smbval/smblib-priv.h view on Meta::CPAN
int gid; /* Group ID, do we need it? */
int mid; /* Multiplex ID? We might need one per con */
int pid; /* Process ID */
int uid; /* Authenticated user id. */
/* It is pretty clear that we need to bust some of */
/* these out into a per TCon record, as there may */
/* be multiple TCon's per server, etc ... later */
int port; /* port to use in case not default, this is a TCPism! */
int max_xmit; /* Max xmit permitted by server */
int Security; /* 0 = share, 1 = user */
int Raw_Support; /* bit 0 = 1 = Read Raw supported, 1 = 1 Write raw */
BOOL encrypt_passwords; /* FALSE = don't */
int MaxMPX, MaxVC, MaxRaw;
unsigned int SessionKey, Capabilities;
int SvrTZ; /* Server Time Zone */
int Encrypt_Key_Len;
char Encrypt_Key[80], Domain[80], PDomain[80], OSName[80], LMType[40];
char Svr_OS[80], Svr_LMType[80], Svr_PDom[80];
};
#define SMBLIB_DEFAULT_DOMAIN "STAFF"
#define SMBLIB_DEFAULT_OSNAME "UNIX of some type"
#define SMBLIB_DEFAULT_LMTYPE "SMBlib LM2.1 minus a bit"
#define SMBLIB_MAX_XMIT 65535
#define SMB_Sec_Mode_Share 0
#define SMB_Sec_Mode_User 1
/* A Tree_Structure */
struct SMB_Tree_Structure {
SMB_Tree_Handle next, prev;
SMB_Handle_Type con;
char path[129];
char device_type[20];
int mbs; /* Local MBS */
int tid;
};
typedef struct SMB_File_Def SMB_File;
struct SMB_File_Def {
SMB_Tree_Handle tree;
char filename[256]; /* We should malloc this ... */
UWORD fid;
unsigned int lastmod;
unsigned int size; /* Could blow up if 64bit files supported */
UWORD access;
off_t fileloc;
};
/* global Variables for the library */
extern SMB_State_Types SMBlib_State;
#ifndef SMBLIB_ERRNO
extern int SMBlib_errno;
extern int SMBlib_SMB_Error; /* last Error */
#endif
SMB_Tree_Handle SMB_TreeConnect(SMB_Handle_Type con, SMB_Tree_Handle tree,
char *path, char *password, char *dev);
( run in 3.033 seconds using v1.01-cache-2.11-cpan-99c4e6809bf )