summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorSamba Release Account <samba-bugs@samba.org>1996-10-25 20:20:17 +0000
committerSamba Release Account <samba-bugs@samba.org>1996-10-25 20:20:17 +0000
commit9467fec29522eb4c8fa5441643845ea7ae312512 (patch)
tree244556bf9f11364be0fb1c4674f15396b2eb062b /source3/include
parent8c5c55fea5656df4fcc241c1f989674cf1b54f9e (diff)
downloadsamba-9467fec29522eb4c8fa5441643845ea7ae312512.tar.gz
samba-9467fec29522eb4c8fa5441643845ea7ae312512.tar.bz2
samba-9467fec29522eb4c8fa5441643845ea7ae312512.zip
Changed prototypes for accesses into validated_users structure.
Ensured all smb_uid accesses are uint16's. jra@cygnus.com (This used to be commit b5e2d87179d0cd347da6feedb9ed9f3605f5a6c3)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 655b0fd360..ac2cc1572d 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -536,10 +536,10 @@ void generate_next_challenge(char *challenge);
BOOL set_challenge(char *challenge);
BOOL last_challenge(char *challenge);
int valid_uid(int uid);
-user_struct *get_valid_user_struct(int uid);
-void invalidate_uid(int uid);
-char *validated_username(int vuid);
-void register_uid(int uid,int gid, char *name,BOOL guest);
+user_struct *get_valid_user_struct(uint16 vuid);
+void invalidate_vuid(uint16 vuid);
+char *validated_username(uint16 vuid);
+uint16 register_vuid(int uid,int gid, char *name,BOOL guest);
void add_session_user(char *user);
void dfs_unlogin(void);
BOOL password_check(char *password);
@@ -547,7 +547,7 @@ BOOL smb_password_check(char *password, unsigned char *part_passwd, unsigned cha
BOOL password_ok(char *user,char *password, int pwlen, struct passwd *pwd);
BOOL user_ok(char *user,int snum);
BOOL authorise_login(int snum,char *user,char *password, int pwlen,
- BOOL *guest,BOOL *force,int vuid);
+ BOOL *guest,BOOL *force,uint16 vuid);
BOOL check_hosts_equiv(char *user);
BOOL server_cryptkey(char *buf);
BOOL server_validate(char *buf);
@@ -681,14 +681,14 @@ BOOL snum_used(int snum);
BOOL reload_services(BOOL test);
int setup_groups(char *user, int uid, int gid, int *p_ngroups,
int **p_igroups, gid_t **p_groups);
-int make_connection(char *service,char *user,char *password, int pwlen, char *dev,int vuid);
+int make_connection(char *service,char *user,char *password, int pwlen, char *dev,uint16 vuid);
int find_free_file(void );
int reply_corep(char *outbuf);
int reply_coreplus(char *outbuf);
int reply_lanman1(char *outbuf);
int reply_lanman2(char *outbuf);
int reply_nt1(char *outbuf);
-void close_cnum(int cnum, int uid);
+void close_cnum(int cnum, uint16 vuid);
BOOL yield_connection(int cnum,char *name,int max_connections);
BOOL claim_connection(int cnum,char *name,int max_connections,BOOL Clear);
void exit_server(char *reason);
@@ -801,7 +801,7 @@ char *ufc_crypt(char *key,char *salt);
void init_uid(void);
BOOL become_guest(void);
-BOOL become_user(int cnum, int uid);
+BOOL become_user(int cnum, uint16 vuid);
BOOL unbecome_user(void );
int smbrun(char *cmd,char *outfile,BOOL shared);