From 53966af9c627e5217fb247b64ef62bf40541c5f8 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 18 Aug 2010 16:41:22 +0200 Subject: Push the details table to the dialog after verification --- src/empathy-auth-helper.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/empathy-auth-helper.c b/src/empathy-auth-helper.c index b2ea4ebc0..9e3a75e23 100644 --- a/src/empathy-auth-helper.c +++ b/src/empathy-auth-helper.c @@ -73,11 +73,12 @@ tls_dialog_response_cb (GtkDialog *dialog, static void display_interactive_dialog (EmpathyTLSCertificate *certificate, - EmpTLSCertificateRejectReason reason) + EmpTLSCertificateRejectReason reason, + GHashTable *details) { GtkWidget *tls_dialog; - tls_dialog = empathy_tls_dialog_new (certificate, reason); + tls_dialog = empathy_tls_dialog_new (certificate, reason, details); g_signal_connect (tls_dialog, "response", G_CALLBACK (tls_dialog_response_cb), NULL); @@ -93,18 +94,19 @@ verifier_verify_cb (GObject *source, EmpTLSCertificateRejectReason reason; GError *error = NULL; EmpathyTLSCertificate *certificate = NULL; + GHashTable *details = NULL; g_object_get (source, "certificate", &certificate, NULL); res = empathy_tls_verifier_verify_finish (EMPATHY_TLS_VERIFIER (source), - result, &reason, &error); + result, &reason, &details, &error); if (error != NULL) { DEBUG ("Error: %s", error->message); - display_interactive_dialog (certificate, reason); + display_interactive_dialog (certificate, reason, details); g_error_free (error); } -- cgit v1.2.3