[w3m-dev 04064] authentication
closes: Bug#:244029: w3m: HTTP basic authentication annoyance * fm.h (auth_cookie): deleted * proto.h (find_auth_cookie): deleted (add_auth_cookie): deleted (add_auth_user_passwd): added (invalidate_auth_user_passwd): added * etc.c (auth_pass): add bad flag delete file (dir_under): deleted (add_auth_pass_entry): add override flag no need to check file (find_auth_pass_entry): delete file check bad flag check uname (find_auth_user_passwd): find by pu->user (add_auth_user_passwd): added (invalidate_auth_user_passwd): added (parsePasswd): add no override ignore file (find_auth): deleted (find_auth_cookie): deleted (dump_auth_cookie): deleted (add_auth_cookie): deleted * file.c (getAuthCookie): add *uname, *pwd rewrite (loadGeneralFile): delete ss, add uname, pwd use add_auth_user_passwd instead of add_auth_cookie * url.c (HTTPrequest): don't authorization here it should be done in getAuthCookie in loadGeneralFile through extra_header * ftp.c (openFTPStream): add uname use find_auth_user_passwd instead of find_auth_cookie use add_auth_user_passwd instead of add_auth_cookie
This commit is contained in:
		
							
								
								
									
										9
									
								
								proto.h
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								proto.h
									
									
									
									
									
								
							@@ -1,4 +1,4 @@
 | 
			
		||||
/* $Id: proto.h,v 1.98 2004/03/23 16:44:02 ukai Exp $ */
 | 
			
		||||
/* $Id: proto.h,v 1.99 2004/04/16 18:47:19 ukai Exp $ */
 | 
			
		||||
/* 
 | 
			
		||||
 *   This file was automatically generated by version 1.7 of cextract.
 | 
			
		||||
 *   Manual editing not recommended.
 | 
			
		||||
@@ -617,9 +617,10 @@ extern void loadPasswd(void);
 | 
			
		||||
extern void loadPreForm(void);
 | 
			
		||||
extern int find_auth_user_passwd(ParsedURL *pu, char *realm,
 | 
			
		||||
				 Str *uname, Str *pwd, int is_proxy);
 | 
			
		||||
extern Str find_auth_cookie(char *host, int port, char *file, char *realm);
 | 
			
		||||
extern void add_auth_cookie(char *host, int port, char *file, char *realm,
 | 
			
		||||
			    Str cookie);
 | 
			
		||||
extern void add_auth_user_passwd(ParsedURL *pu, char *realm,
 | 
			
		||||
				 Str uname, Str pwd, int is_proxy);
 | 
			
		||||
extern void invalidate_auth_user_passwd(ParsedURL *pu, char *realm,
 | 
			
		||||
					Str uname, Str pwd, int is_proxy);
 | 
			
		||||
extern char *last_modified(Buffer *buf);
 | 
			
		||||
extern Str romanNumeral(int n);
 | 
			
		||||
extern Str romanAlphabet(int n);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user