diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-18 21:25:27 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-10 16:05:51 +0800 |
commit | 00cc78476a3926f64b531be08ff96dc817e63367 (patch) | |
tree | e69e68be238d5513e220a251aec936aff5dd1687 /src | |
parent | 049ba20e4c1579faaf999089a4a97674e3816a50 (diff) | |
download | gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar.gz gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar.bz2 gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar.lz gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar.xz gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.tar.zst gsoc2013-empathy-00cc78476a3926f64b531be08ff96dc817e63367.zip |
Use TpTpTLSCertificate
https://bugzilla.gnome.org/show_bug.cgi?id=674318
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy-auth-client.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/empathy-auth-client.c b/src/empathy-auth-client.c index ee33703fe..4f7712d9b 100644 --- a/src/empathy-auth-client.c +++ b/src/empathy-auth-client.c @@ -93,8 +93,8 @@ tls_dialog_response_cb (GtkDialog *dialog, gint response_id, gpointer user_data) { - EmpathyTLSCertificate *certificate = NULL; - EmpTLSCertificateRejectReason reason = 0; + TpTLSCertificate *certificate = NULL; + TpTLSCertificateRejectReason reason = 0; GHashTable *details = NULL; EmpathyTLSDialog *tls_dialog = EMPATHY_TLS_DIALOG (dialog); gboolean remember = FALSE; @@ -113,13 +113,15 @@ tls_dialog_response_cb (GtkDialog *dialog, if (response_id == GTK_RESPONSE_YES) { - empathy_tls_certificate_accept_async (certificate, NULL, NULL); + tp_tls_certificate_accept_async (certificate, NULL, NULL); } else { tp_asv_set_boolean (details, "user-requested", TRUE); - empathy_tls_certificate_reject_async (certificate, reason, details, - NULL, NULL); + tp_tls_certificate_add_rejection (certificate, reason, NULL, + g_variant_new_parsed ("{ 'user-requested': <%b> }", TRUE)); + + tp_tls_certificate_reject_async (certificate, NULL, NULL); } if (remember) @@ -138,9 +140,9 @@ tls_dialog_response_cb (GtkDialog *dialog, } static void -display_interactive_dialog (EmpathyTLSCertificate *certificate, +display_interactive_dialog (TpTLSCertificate *certificate, EmpathyTLSVerifier *verifier, - EmpTLSCertificateRejectReason reason, + TpTLSCertificateRejectReason reason, GHashTable *details) { GtkWidget *tls_dialog; @@ -162,9 +164,9 @@ verifier_verify_cb (GObject *source, GAsyncResult *result, gpointer user_data) { - EmpTLSCertificateRejectReason reason; + TpTLSCertificateRejectReason reason; GError *error = NULL; - EmpathyTLSCertificate *certificate = NULL; + TpTLSCertificate *certificate = NULL; GHashTable *details = NULL; gchar *hostname = NULL; @@ -185,7 +187,7 @@ verifier_verify_cb (GObject *source, } else { - empathy_tls_certificate_accept_async (certificate, NULL, NULL); + tp_tls_certificate_accept_async (certificate, NULL, NULL); } g_free (hostname); @@ -197,7 +199,7 @@ auth_factory_new_tls_handler_cb (EmpathyAuthFactory *factory, EmpathyServerTLSHandler *handler, gpointer user_data) { - EmpathyTLSCertificate *certificate = NULL; + TpTLSCertificate *certificate = NULL; gchar *hostname = NULL; gchar **reference_identities = NULL; EmpathyTLSVerifier *verifier; |