w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 81da9ac3e26b494c7c12d262a801d52129608771
parent 1d247942ba67a71c91b6e2d54630581922d51e62
Author: ukai <ukai>
Date:   Wed, 13 Feb 2002 17:24:24 +0000

* [w3m-dev 03053] Re: SSL indicator
* main.c (dump_extra): Output SSL certificate.
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mmain.c | 17+++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-14 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp> + + * [w3m-dev 03053] Re: SSL indicator + * main.c (dump_extra): Output SSL certificate. + 2002-02-12 Katsumi Yamaoka <yamaoka@jpl.org> * [w3m-dev 03038] LDFLAGS diff --git a/main.c b/main.c @@ -1078,6 +1078,23 @@ dump_extra(Buffer *buf) #ifdef JP_CHARSET printf("W3m-document-charset: %s\n", code_to_str(buf->document_code)); #endif +#ifdef USE_SSL + if (buf->ssl_certificate) { + Str tmp = Strnew(); + char *p; + for (p = buf->ssl_certificate; *p; p++) { + Strcat_char(tmp, *p); + if (*p == '\n') { + for (; *(p + 1) == '\n'; p++) ; + if (*(p + 1)) + Strcat_char(tmp, '\t'); + } + } + if (Strlastchar(tmp) != '\n') + Strcat_char(tmp, '\n'); + printf("W3m-ssl-certificate: %s", tmp->ptr); + } +#endif } void