/* This file is automatically generated with "make proto". DO NOT EDIT */ /*The following definitions come from clientgen.c */ BOOL cli_initialise(struct cli_state *cli); BOOL cli_connect(struct cli_state *cli, char *host, struct in_addr *ip); BOOL get_myname(char *my_name,struct in_addr *ip); BOOL cli_session_request(struct cli_state *cli, char *host, int name_type, char *myname); BOOL cli_negprot(struct cli_state *cli); BOOL cli_session_setup(struct cli_state *cli, char *user, char *pass, int passlen, char *ntpass, int ntpasslen, char *workgroup); BOOL cli_send_tconX(struct cli_state *cli, char *share, char *dev, char *pass, int passlen); BOOL cli_oem_change_password(struct cli_state *cli, char *user, char *new_password, char *old_password); void cli_shutdown(struct cli_state *cli); char *cli_errstr(struct cli_state *cli); /*The following definitions come from util.c */ int smb_offset(char *p,char *buf); struct hostent *Get_Hostbyname(char *name); int smb_readpamconf(char *smb_server, char *smb_backup, char *smb_domain); BOOL resolve_name(char *name, struct in_addr *return_ip); int TvalDiff(struct timeval *tvalold,struct timeval *tvalnew); void GetTimeOfDay(struct timeval *tval); void msleep(int t); int open_socket_out(int type, struct in_addr *addr, int port ,int timeout); int set_blocking(int fd, BOOL set); void putip(void *dest,void *src); int name_mangle( char *In, char *Out, char name_type ); int name_len( char *s ); void _smb_setlen(char *buf,int len); char *skip_string(char *buf,int n); void close_sockets(void ); BOOL send_smb(int fd,char *buffer); int write_socket(int fd,char *buf,int len); int read_data(int fd,char *buffer,int N); int write_data(int fd,char *buffer,int N); BOOL client_receive_smb(int fd,char *buffer, int timeout); int sys_select(fd_set *fds,struct timeval *tval); int read_with_timeout(int fd,char *buf,int mincnt,int maxcnt,long time_out); BOOL receive_smb(int fd,char *buffer, int timeout); int smb_len(char *buf); int set_message(char *buf,int num_words,int num_bytes,BOOL zero); void smb_setlen(char *buf,int len); int smb_numwords(char *buf); int smb_buflen(char *buf); int smb_buf_ofs(char *buf); char *smb_buf(char *buf); void strlower(char *s); void strupper(char *s); time_t make_unix_date(void *date_ptr); void show_msg(char *buf); char *smb_errstr(char *inbuf); char *safe_strcpy(char *dest, char *src, int maxlength); char *StrCpy(char *dest,char *src); char *StrnCpy(char *dest,char *src,int n); void *Realloc(void *p,int size); int TimeDiff(time_t t); time_t interpret_long_date(char *p); int TimeZoneFaster(time_t t); void str_to_key(unsigned char *str,unsigned char *key); void E_P16(unsigned char *p14,unsigned char *p16); void E_old_pw_hash( unsigned char *p14, unsigned char *in, unsigned char *out); void E_P24(unsigned char *p21, unsigned char *c8, unsigned char *p24); void D_P16(unsigned char *p14, unsigned char *in, unsigned char *out); void SMBencrypt(uchar *passwd, uchar *c8, uchar *p24); void SamOEMhash( unsigned char *data, unsigned char *key, int val);