aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-auth-helper.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-18 22:41:22 +0800
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-19 01:18:56 +0800
commit53966af9c627e5217fb247b64ef62bf40541c5f8 (patch)
treeee1f979d01590262c400f5fd790797704a5d454b /src/empathy-auth-helper.c
parent86eac228724f7a4c45b8bc58254af77bdad1e766 (diff)
downloadgsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar.gz
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar.bz2
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar.lz
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar.xz
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.tar.zst
gsoc2013-empathy-53966af9c627e5217fb247b64ef62bf40541c5f8.zip
Push the details table to the dialog after verification
Diffstat (limited to 'src/empathy-auth-helper.c')
-rw-r--r--src/empathy-auth-helper.c10
1 files changed, 6 insertions, 4 deletions
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);
}