changeset 19331:920984752314

- Fix the interpretation of the "accept cert? yes/no" choice id given by purple_request_action to its callbacks
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 18 Aug 2007 07:42:24 +0000
parents b65a23799dc2
children 6e0521bb0853
files libpurple/certificate.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Sat Aug 18 07:21:33 2007 +0000
+++ b/libpurple/certificate.c	Sat Aug 18 07:42:24 2007 +0000
@@ -1102,7 +1102,7 @@
 
 	tls_peers = purple_certificate_find_pool("x509","tls_peers");
 
-	if (1 == id) {
+	if (2 == id) {
 		gchar *cache_id = vrq->subject_name;
 		purple_debug_info("certificate/x509/tls_cached",
 				  "User ACCEPTED cert\nCaching first in chain for future use as %s...\n",
@@ -1142,7 +1142,7 @@
 		_("SSL Certificate Verification"),
 		primary,
 		reason,
-		1,            /* Accept by default */
+		2,            /* Accept by default */
 		NULL,         /* No account */
 		NULL,         /* No other user */
 		NULL,         /* No associated conversation */