Apache2-AuthenNTLM
view release on metacpan or search on metacpan
smb/smbval/smblib-priv.h view on Meta::CPAN
static char *SMB_Prots[] = {"PC NETWORK PROGRAM 1.0",
"MICROSOFT NETWORKS 1.03",
"MICROSOFT NETWORKS 3.0",
"DOS LANMAN1.0",
"LANMAN1.0",
"DOS LM1.2X002",
"LM1.2X002",
"DOS LANMAN2.1",
"LANMAN2.1",
"Samba",
"NT LM 0.12",
"NT LANMAN 1.0",
NULL};
static int SMB_Types[] = {SMB_P_Core,
SMB_P_CorePlus,
SMB_P_DOSLanMan1,
SMB_P_DOSLanMan1,
SMB_P_LanMan1,
SMB_P_DOSLanMan2,
SMB_P_LanMan2,
SMB_P_LanMan2_1,
SMB_P_LanMan2_1,
SMB_P_NT1,
SMB_P_NT1,
SMB_P_NT1,
-1};
typedef struct SMB_Status {
union {
struct {
unsigned char ErrorClass;
unsigned char Reserved;
unsigned short Error;
} DosError;
unsigned int NtStatus;
} status;
} SMB_Status;
typedef struct SMB_Tree_Structure * SMB_Tree_Handle;
typedef struct SMB_Connect_Def * SMB_Handle_Type;
struct SMB_Connect_Def {
SMB_Handle_Type Next_Con, Prev_Con; /* Next and previous conn */
int protocol; /* What is the protocol */
int prot_IDX; /* And what is the index */
void *Trans_Connect; /* The connection */
/* All these strings should be malloc'd */
char service[80], username[80], password[80], desthost[80], sock_options[80];
char address[80], myname[80];
SMB_Tree_Handle first_tree, last_tree; /* List of trees on this server */
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 */
( run in 1.176 second using v1.01-cache-2.11-cpan-ceb78f64989 )