[empathy/next: 62/79] TLS certificates are now created using a factory
- From: Simon McVittie <smcv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy/next: 62/79] TLS certificates are now created using a factory
- Date: Thu, 3 Apr 2014 14:31:11 +0000 (UTC)
commit 48f3bf4312b614dce7204c9e926d37f9f17262b7
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Mar 18 16:58:31 2014 +0100
TLS certificates are now created using a factory
libempathy/empathy-server-tls-handler.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libempathy/empathy-server-tls-handler.c b/libempathy/empathy-server-tls-handler.c
index 7afd7b9..b7b6173 100644
--- a/libempathy/empathy-server-tls-handler.c
+++ b/libempathy/empathy-server-tls-handler.c
@@ -95,6 +95,7 @@ tls_handler_init_async (GAsyncInitable *initable,
GAsyncReadyCallback callback,
gpointer user_data)
{
+ TpClientFactory *factory;
GVariant *properties;
const gchar *cert_object_path;
const gchar *bus_name;
@@ -151,8 +152,10 @@ tls_handler_init_async (GAsyncInitable *initable,
DEBUG ("Creating an TpTLSCertificate for path %s, bus name %s",
cert_object_path, bus_name);
- priv->certificate = tp_tls_certificate_new (TP_PROXY (priv->channel),
- cert_object_path, &error);
+ factory = tp_proxy_get_factory (priv->channel);
+
+ priv->certificate = tp_client_factory_ensure_tls_certificate (factory,
+ TP_PROXY (priv->channel), cert_object_path, &error);
g_variant_unref (properties);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]