summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Hernández <jhernandez@emergya.com>2012-08-21 21:45:34 +0200
committerRoss Burton <ross.burton@intel.com>2012-08-22 11:59:55 +0100
commit72e19312518a80bdd8558e18edef95929a173553 (patch)
tree22e1344c7e1223dfce2c859eda929d310f779bf9
parentc29965df2b3ad62b1aac39eb35ee3d1ecd80b763 (diff)
downloadlibrest-72e19312518a80bdd8558e18edef95929a173553.tar.gz
Do not set REST_SYSTEM_CA_FILE session attribute while building with --without-ca-certificates
-rw-r--r--rest/rest-proxy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rest/rest-proxy.c b/rest/rest-proxy.c
index 78dc6b0..b96a0dc 100644
--- a/rest/rest-proxy.c
+++ b/rest/rest-proxy.c
@@ -391,6 +391,7 @@ rest_proxy_init (RestProxy *self)
priv->session = soup_session_async_new ();
priv->session_sync = soup_session_sync_new ();
+#if REST_SYSTEM_CA_FILE
/* with ssl-strict (defaults TRUE) setting ssl-ca-file forces all
* certificates to be trusted */
g_object_set (priv->session,
@@ -399,6 +400,7 @@ rest_proxy_init (RestProxy *self)
g_object_set (priv->session_sync,
"ssl-ca-file", REST_SYSTEM_CA_FILE,
NULL);
+#endif
#if WITH_GNOME
soup_session_add_feature_by_type (priv->session,