[w3m-dev 02999] don't ask accept bad cert when background downloading

* file.c (getAuthCookie): if QuietMessage, return NULL
* file.c (inputAnswer): if QuietMessage, input "n"
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-02-06 16:20:25 +00:00
parent 735d0c1d57
commit 6352ed6986
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2002-02-07 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02999] don't ask accept bad cert when background downloading
* file.c (getAuthCookie): if QuietMessage, return NULL
* file.c (inputAnswer): if QuietMessage, input "n"
2002-02-05 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> 2002-02-05 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
* [w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfload * [w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfload
@@ -2842,4 +2848,4 @@
* release-0-2-1 * release-0-2-1
* import w3m-0.2.1 * import w3m-0.2.1
$Id: ChangeLog,v 1.302 2002/02/05 12:31:27 ukai Exp $ $Id: ChangeLog,v 1.303 2002/02/06 16:20:25 ukai Exp $

6
file.c
View File

@@ -1,4 +1,4 @@
/* $Id: file.c,v 1.66 2002/02/05 12:31:27 ukai Exp $ */ /* $Id: file.c,v 1.67 2002/02/06 16:20:25 ukai Exp $ */
#include "fm.h" #include "fm.h"
#include <sys/types.h> #include <sys/types.h>
#include "myctype.h" #include "myctype.h"
@@ -1320,6 +1320,8 @@ getAuthCookie(struct http_auth *hauth, char *auth_header,
else else
ss = find_auth_cookie(pu->host, pu->port, realm); ss = find_auth_cookie(pu->host, pu->port, realm);
if (ss == NULL) { if (ss == NULL) {
if (QuietMessage)
return ss;
/* input username and password */ /* input username and password */
sleep(2); sleep(2);
if (fmInitialized) { if (fmInitialized) {
@@ -7155,6 +7157,8 @@ inputAnswer(char *prompt)
{ {
char *ans; char *ans;
if (QuietMessage)
return "n";
if (fmInitialized) { if (fmInitialized) {
term_raw(); term_raw();
ans = inputChar(prompt); ans = inputChar(prompt);