From ce9981bad25d5ad7493fe2184ca3b540a75c2c34 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 18 Mar 2014 16:58:31 +0100 Subject: TLS certificates are now created using a factory --- libempathy/empathy-server-tls-handler.c | 7 +++++-- 1 file 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); -- cgit v1.2.3