]> git.0d.be Git - empathy.git/commitdiff
Fill 'user-requested' when we reject the certificate
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Aug 2010 16:01:45 +0000 (18:01 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Aug 2010 17:19:00 +0000 (19:19 +0200)
src/empathy-auth-client.c

index 7546164d3c417311aba2de71959a2b71f7a37035..17b66a57d5677cc294706ee1a88a6c1188c0bf45 100644 (file)
@@ -87,6 +87,7 @@ tls_dialog_response_cb (GtkDialog *dialog,
 {
   EmpathyTLSCertificate *certificate = NULL;
   EmpTLSCertificateRejectReason reason = 0;
 {
   EmpathyTLSCertificate *certificate = NULL;
   EmpTLSCertificateRejectReason reason = 0;
+  GHashTable *details = NULL;
   EmpathyTLSDialog *tls_dialog = EMPATHY_TLS_DIALOG (dialog);
   gboolean remember = FALSE;
 
   EmpathyTLSDialog *tls_dialog = EMPATHY_TLS_DIALOG (dialog);
   gboolean remember = FALSE;
 
@@ -96,20 +97,27 @@ tls_dialog_response_cb (GtkDialog *dialog,
       "certificate", &certificate,
       "reason", &reason,
       "remember", &remember,
       "certificate", &certificate,
       "reason", &reason,
       "remember", &remember,
+      "details", &details,
       NULL);
 
   gtk_widget_destroy (GTK_WIDGET (dialog));
 
   if (response_id == GTK_RESPONSE_YES)
       NULL);
 
   gtk_widget_destroy (GTK_WIDGET (dialog));
 
   if (response_id == GTK_RESPONSE_YES)
-    empathy_tls_certificate_accept_async (certificate, NULL, NULL);
+    {
+      empathy_tls_certificate_accept_async (certificate, NULL, NULL);
+    }
   else
   else
-    empathy_tls_certificate_reject_async (certificate, reason, TRUE,
-        NULL, NULL);
+    {
+      tp_asv_set_boolean (details, "user-requested", TRUE);
+      empathy_tls_certificate_reject_async (certificate, reason, details,
+          NULL, NULL);
+    }
 
   if (remember)
     empathy_tls_certificate_store_ca (certificate);
 
   g_object_unref (certificate);
 
   if (remember)
     empathy_tls_certificate_store_ca (certificate);
 
   g_object_unref (certificate);
+  g_hash_table_unref (details);
 
   /* restart the timeout */
   num_windows--;
 
   /* restart the timeout */
   num_windows--;