[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
LYNX-DEV Proxy password patch
From: |
Frederick P Herrmann |
Subject: |
LYNX-DEV Proxy password patch |
Date: |
Tue, 24 Mar 1998 20:54:13 -0500 |
Lynx 2.8 has the new -pauth option, but it doesn't provide a way to
specify a username and a blank password. (I have to deal with a
firewall so configured.)
With the simple patch below, -pauth=user: specifies a blank
password, and -pauth=user leaves the password unspecified. Same
for -auth, while we're at it.
--- src/LYMain.c.orig Fri Feb 27 13:25:07 1998
+++ src/LYMain.c Fri Mar 20 07:08:45 1998
@@ -1882,10 +1882,8 @@
if (auth_info != NULL) {
if ((cp = strchr(auth_info, ':')) != NULL) { /* Pw */
*cp++ = '\0'; /* Terminate ID */
- if (*cp) {
- HTUnEscape(cp);
- StrAllocCopy(authentication_info[1], cp);
- }
+ HTUnEscape(cp);
+ StrAllocCopy(authentication_info[1], cp);
}
if (*auth_info) { /* Id */
HTUnEscape(auth_info);
@@ -2354,10 +2352,8 @@
if (pauth_info != NULL) {
if ((cp = strchr(pauth_info, ':')) != NULL) { /* Pw */
*cp++ = '\0'; /* Terminate ID */
- if (*cp) {
- HTUnEscape(cp);
- StrAllocCopy(proxyauth_info[1], cp);
- }
+ HTUnEscape(cp);
+ StrAllocCopy(proxyauth_info[1], cp);
}
if (*pauth_info) { /* Id */
HTUnEscape(pauth_info);
--- WWW/Library/Implementation/HTAABrow.c.orig Fri Jan 16 13:29:27 1998
+++ WWW/Library/Implementation/HTAABrow.c Fri Mar 20 07:07:44 1998
@@ -603,7 +603,7 @@
realm = HTAARealm_lookup(setup->server->realms, realmname);
if (!(realm &&
realm->username && *realm->username &&
- realm->password && *realm->password) || setup->retry) {
+ realm->password) || setup->retry) {
if (!realm) {
if (TRACE)
fprintf(stderr, "%s `%s' %s\n",
@@ -675,7 +675,7 @@
* Signals to retry. - FM
*/
return NULL;
- } else if (*realm->username == '\0' || *realm->password == '\0') {
+ } else if (*realm->username == '\0') {
/*
* Signals to abort. - FM
*/
--
Frederick P. Herrmann
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- LYNX-DEV Proxy password patch,
Frederick P Herrmann <=