diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2014-03-18 16:58:31 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-25 19:26:20 +0000 |
commit | ce9981bad25d5ad7493fe2184ca3b540a75c2c34 (patch) | |
tree | 40db79bc5a7e8323bd229404f16926b979bdf4da | |
parent | a2e432bdc542f797d22b12dfe570099dfaf2927d (diff) |
TLS certificates are now created using a factory
-rw-r--r-- | 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 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); |