summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-03-18 16:58:31 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-27 10:32:14 +0000
commit48f3bf4312b614dce7204c9e926d37f9f17262b7 (patch)
tree1c74fc9c036b7245d72cd7480a9d3f7ab1d422e6
parent9f6bea4b966ef186c1eb7d8cb571ea52f355f375 (diff)
TLS certificates are now created using a factory
-rw-r--r--libempathy/empathy-server-tls-handler.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy/empathy-server-tls-handler.c b/libempathy/empathy-server-tls-handler.c
index 7afd7b98..b7b6173e 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);