CVS: sylpheedclaws/sylpheed-claws/src prefs_common.c,1.204.2.111,1.204.2.112 prefs_common.h,1.103.2.69,1.103.2.70

[email protected]
Newsgroups gmane.mail.sylpheed.claws.cvs
Message-ID <[email protected]>
Update of /pack/anoncvs/sylpheedclaws/sylpheed-claws/src
In directory sunsite.dk:/tmp/cvs-serv28513/src

Modified Files:
      Tag: gtk2
	prefs_common.c prefs_common.h 
Log Message:
2006-12-09 [colin]	2.6.1cvs13

	* manual/advanced.xml
	* src/prefs_common.c
	* src/prefs_common.h
	* src/common/ssl_certificate.c
		Add a new hidden preference, 'unsafe_ssl_certs',
		which allows to store multiple certificates per
		server/port. This is disabled by default because
		it's less secure (presenting a new certificate
		instead of a changed one raises less alarms).
		This will cause Claws to ask about an unknown
		certificate for people who have used 2.6.1cvs8
		or greater.

Index: prefs_common.c
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/prefs_common.c,v
retrieving revision 1.204.2.111
retrieving revision 1.204.2.112
diff -u -d -r1.204.2.111 -r1.204.2.112
--- prefs_common.c	2006/12/01 14:24:47	1.204.2.111
+++ prefs_common.c	2006/12/09 22:02:28	1.204.2.112
@@ -821,6 +821,8 @@
 	 NULL, NULL, NULL},
 	{"hide_quotes", "0", &prefs_common.hide_quotes, P_INT,
 	 NULL, NULL, NULL},
+	{"unsafe_ssl_certs", "FALSE", &prefs_common.unsafe_ssl_certs, P_BOOL,
+	 NULL, NULL, NULL},
 
 	{NULL, NULL, NULL, P_OTHER, NULL, NULL, NULL}
 };
@@ -1100,4 +1102,10 @@
 	g_free(tmp);
 
 	return out?out:"";
+}
+
+/* ugly hack to be able to get this pref from ssl_certificate.c */
+gboolean prefs_common_unsafe_ssl_certs(void)
+{
+	return prefs_common.unsafe_ssl_certs;
 }

Index: prefs_common.h
===================================================================
RCS file: /pack/anoncvs/sylpheedclaws/sylpheed-claws/src/prefs_common.h,v
retrieving revision 1.103.2.69
retrieving revision 1.103.2.70
diff -u -d -r1.103.2.69 -r1.103.2.70
--- prefs_common.h	2006/12/01 14:24:48	1.103.2.69
+++ prefs_common.h	2006/12/09 22:02:29	1.103.2.70
@@ -410,6 +410,7 @@
 	gint live_dangerously;
 	gint never_send_retrcpt;
 	gint hide_quotes;
+	gboolean unsafe_ssl_certs;
 };
 
 extern PrefsCommon prefs_common;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.