aboutsummaryrefslogtreecommitdiffstats
path: root/url.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-26 12:58:49 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-26 12:58:49 +0000
commit2b86b4b79495cf2e859f0d5e6e9a3d6ece6e0fe7 (patch)
tree5dd42d265151424d64b3ee9224efcf3d50250d69 /url.c
parent[w3m-dev 02743] RFC2818 server identity check (diff)
downloadw3m-2b86b4b79495cf2e859f0d5e6e9a3d6ece6e0fe7.tar.gz
w3m-2b86b4b79495cf2e859f0d5e6e9a3d6ece6e0fe7.zip
RFC2818 server identity check update
Diffstat (limited to '')
-rw-r--r--url.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/url.c b/url.c
index 03d03cd..da7d59e 100644
--- a/url.c
+++ b/url.c
@@ -1,4 +1,4 @@
-/* $Id: url.c,v 1.23 2001/12/26 12:18:06 ukai Exp $ */
+/* $Id: url.c,v 1.24 2001/12/26 12:58:49 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include <sys/socket.h>
@@ -372,7 +372,8 @@ openSSLHandle(int sock, char *hostname)
if (tolower(*ans) == 'y') {
amsg = Strnew_charp("Accept unsecure SSL session: "
"unverified certificate");
- } else {
+ }
+ else {
char *e = "This SSL session was rejected "
"to prevent security violation";
disp_err_message(e, FALSE);
@@ -381,7 +382,7 @@ openSSLHandle(int sock, char *hostname)
}
}
#endif
-
+
emsg = ssl_check_cert_ident(handle, hostname);
if (emsg != NULL) {
if (emsg->length > COLS - 16)
@@ -391,8 +392,9 @@ openSSLHandle(int sock, char *hostname)
ans = inputChar(emsg->ptr);
if (tolower(*ans) == 'y') {
amsg = Strnew_charp("Accept unsecure SSL session:"
- "certificate ident mismatch");
- } else {
+ "certificate ident mismatch");
+ }
+ else {
char *e = "This SSL session was rejected "
"to prevent security violation";
disp_err_message(e, FALSE);