aboutsummaryrefslogtreecommitdiffstats
path: root/rc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-14 16:56:22 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-14 16:56:22 +0000
commit41139c1337fa36166ad60d4fa6bfb4709007d99f (patch)
tree56ee8149a209ac5ad47072a4a661b6df8934c7bb /rc.c
parent[w3m-dev 03428] install manual as w3m.exe.1 on Cygwin (diff)
downloadw3m-41139c1337fa36166ad60d4fa6bfb4709007d99f.tar.gz
w3m-41139c1337fa36166ad60d4fa6bfb4709007d99f.zip
[w3m-dev 03429] https proxy
* fm.h (HTTPS_proxy): added (HTTPS_proxy_parsed): added * main.c (main): check https_proxy * rc.c (CMT_HTTPS_PROXY): added (https_proxy): added (parse_proxy): HTTPS_proxy * url.c (openURL): for HTTPS, use HTTPS_proxy (schemeToProxy): HTTPS_proxy_parsed From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'rc.c')
-rw-r--r--rc.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/rc.c b/rc.c
index 9de34dd..19450b7 100644
--- a/rc.c
+++ b/rc.c
@@ -1,4 +1,4 @@
-/* $Id: rc.c,v 1.62 2002/11/12 12:42:51 ukai Exp $ */
+/* $Id: rc.c,v 1.63 2002/11/14 16:56:24 ukai Exp $ */
/*
* Initialization file etc.
*/
@@ -91,6 +91,9 @@ static char *config_file = NULL;
#define CMT_VISITED_ANCHOR "訪れたことがあるリンクは色を変える"
#define CMT_V_COLOR "訪れたことがあるリンクの色"
#define CMT_HTTP_PROXY "HTTPプロキシ(URLで入力)"
+#ifdef USE_SSL
+#define CMT_HTTPS_PROXY "HTTPSプロキシ(URLで入力)"
+#endif /* USE_SSL */
#ifdef USE_GOPHER
#define CMT_GOPHER_PROXY "GOPHERプロキシ(URLで入力)"
#endif /* USE_GOPHER */
@@ -240,6 +243,9 @@ static char *config_file = NULL;
#define CMT_BG_COLOR "Color of background"
#define CMT_MARK_COLOR "Color of mark"
#define CMT_HTTP_PROXY "URL of HTTP proxy host"
+#ifdef USE_SSL
+#define CMT_HTTPS_PROXY "URL of HTTPS proxy host"
+#endif /* USE_SSL */
#ifdef USE_GOPHER
#define CMT_GOPHER_PROXY "URL of GOPHER proxy host"
#endif /* USE_GOPHER */
@@ -630,6 +636,10 @@ struct param_ptr params3[] = {
struct param_ptr params4[] = {
{"http_proxy", P_STRING, PI_TEXT, (void *)&HTTP_proxy, CMT_HTTP_PROXY,
NULL},
+#ifdef USE_SSL
+ {"https_proxy", P_STRING, PI_TEXT, (void *)&HTTPS_proxy, CMT_HTTPS_PROXY,
+ NULL},
+#endif /* USE_SSL */
#ifdef USE_GOPHER
{"gopher_proxy", P_STRING, PI_TEXT, (void *)&GOPHER_proxy,
CMT_GOPHER_PROXY, NULL},
@@ -1220,6 +1230,10 @@ parse_proxy()
{
if (non_null(HTTP_proxy))
parseURL(HTTP_proxy, &HTTP_proxy_parsed, NULL);
+#ifdef USE_SSL
+ if (non_null(HTTPS_proxy))
+ parseURL(HTTPS_proxy, &HTTPS_proxy_parsed, NULL);
+#endif /* USE_SSL */
#ifdef USE_GOPHER
if (non_null(GOPHER_proxy))
parseURL(GOPHER_proxy, &GOPHER_proxy_parsed, NULL);