ec61ef2
verify SSL certificates by default. SSL support really is pointless without doing that.
ec61ef2
Also disable use of SSLv2 by default as it's insecure, deprecated, dead since last century.
ec61ef2
Index: w3m-0.5.2/fm.h
ec61ef2
===================================================================
ec61ef2
--- w3m-0.5.2.orig/fm.h
ec61ef2
+++ w3m-0.5.2/fm.h
ec61ef2
@@ -1120,7 +1120,7 @@ global int view_unseenobject init(TRUE);
ec61ef2
 #endif
ec61ef2
 
ec61ef2
 #if defined(USE_SSL) && defined(USE_SSL_VERIFY)
ec61ef2
-global int ssl_verify_server init(FALSE);
ec61ef2
+global int ssl_verify_server init(TRUE);
ec61ef2
 global char *ssl_cert_file init(NULL);
ec61ef2
 global char *ssl_key_file init(NULL);
ec61ef2
 global char *ssl_ca_path init(NULL);
ec61ef2
@@ -1129,7 +1129,7 @@ global int ssl_path_modified init(FALSE)
ec61ef2
 #endif				/* defined(USE_SSL) &&
ec61ef2
 				 * defined(USE_SSL_VERIFY) */
ec61ef2
 #ifdef USE_SSL
ec61ef2
-global char *ssl_forbid_method init(NULL);
ec61ef2
+global char *ssl_forbid_method init("2");
ec61ef2
 #endif
ec61ef2
 
ec61ef2
 global int is_redisplay init(FALSE);