[librest/wip/teuf/gtask: 35/37] more cleanup made possible by SoupSession switch/ABI break/new glib requirement



commit f828d4901b965c6dc7147ba040282ee4a1f2dda0
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Thu Jun 16 15:22:54 2016 +0200

    more cleanup made possible by SoupSession switch/ABI break/new glib requirement

 rest/rest-proxy-call.c |    1 +
 rest/rest-proxy.c      |   13 +------------
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 4a5425a..30323e7 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -719,6 +719,7 @@ prepare_message (RestProxyCall *call, GError **error_out)
   /* Emit a warning if the caller is re-using RestProxyCall objects */
   if (priv->url)
   {
+    /* FIXME: g_return_val_if_fail? */
     g_warning (G_STRLOC ": re-use of RestProxyCall %p, don't do this", call);
   }
 
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 9061221..8b85877 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -402,21 +402,10 @@ rest_proxy_init (RestProxy *self)
 
   priv->session = soup_session_new ();
 
-#ifdef REST_SYSTEM_CA_FILE
-  /* with ssl-strict (defaults TRUE) setting ssl-ca-file forces all
-   * certificates to be trusted */
-  g_object_set (priv->session,
-                "ssl-ca-file", REST_SYSTEM_CA_FILE,
-                NULL);
-#endif
+  /* TODO: remove/replace this property? */
   g_object_bind_property (self, "ssl-ca-file",
                           priv->session, "ssl-ca-file",
                           G_BINDING_BIDIRECTIONAL);
-
-#if WITH_GNOME
-  soup_session_add_feature_by_type (priv->session,
-                                    SOUP_TYPE_PROXY_RESOLVER_GNOME);
-#endif
 }
 
 /**


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]