commit 022ecebf0144d32b9386a63c6809daa144310ae7
parent b535b9262a1f50af26cc7658ed27cdb45e40dbef
Author: ukai <ukai>
Date: Fri, 8 Feb 2002 11:45:07 +0000
[w3m-dev 03022] SSL certificates of frame body
* frame.h (frame_body): add ssl_certificate
* frame.c (frame_download_source): save ssl_certificate
* map.c (append_frame_info): display ssl_certificate of frame_body
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat:
4 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,5 +1,12 @@
2002-02-08 Fumitoshi UKAI <ukai@debian.or.jp>
+ * [w3m-dev 03022] SSL certificates of frame body
+ * frame.h (frame_body): add ssl_certificate
+ * frame.c (frame_download_source): save ssl_certificate
+ * map.c (append_frame_info): display ssl_certificate of frame_body
+
+2002-02-08 Fumitoshi UKAI <ukai@debian.or.jp>
+
* [w3m-dev 03021] Bug#132934: w3m should recognize file:/uris
in chkURLBuffer function
* main.c (chkURLBuffer): add "file:"
diff --git a/frame.c b/frame.c
@@ -386,6 +386,10 @@ frame_download_source(struct frame_body *b, ParsedURL *currentURL,
buf = loadGeneralFile(b->url,
baseURL ? baseURL : currentURL,
b->referer, flag | RG_FRAME_SRC, b->request);
+#ifdef USE_SSL
+ /* XXX certificate? */
+ b->ssl_certificate = buf->ssl_certificate;
+#endif
w3m_dump &= ~DUMP_FRAME;
is_redisplay = FALSE;
break;
diff --git a/frame.h b/frame.h
@@ -26,6 +26,9 @@ struct frame_body {
char *referer;
struct _anchorList *nameList;
FormList *request;
+#ifdef USE_SSL
+ char *ssl_certificate;
+#endif
};
union frameset_element {
diff --git a/map.c b/map.c
@@ -310,6 +310,12 @@ append_frame_info(Buffer *buf, Str html, struct frameset *set, int level)
Strcat_charp(html, " ");
Strcat_charp(html, q);
Strcat_charp(html, "</a>\n");
+#ifdef USE_SSL
+ if (frame.body->ssl_certificate)
+ Strcat_m_charp(html, "<blockquote><pre>\n",
+ frame.body->ssl_certificate,
+ "</pre></blockquote>\n", NULL);
+#endif
break;
case F_FRAMESET:
append_frame_info(buf, html, frame.set, level + 1);