[librest] Do not set REST_SYSTEM_CA_FILE session attribute while building with --without-ca-certificates
- From: Ross Burton <rburton src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest] Do not set REST_SYSTEM_CA_FILE session attribute while building with --without-ca-certificates
- Date: Wed, 22 Aug 2012 11:02:49 +0000 (UTC)
commit 72e19312518a80bdd8558e18edef95929a173553
Author: Javier HernÃndez <jhernandez emergya com>
Date: Tue Aug 21 21:45:34 2012 +0200
Do not set REST_SYSTEM_CA_FILE session attribute while building with --without-ca-certificates
rest/rest-proxy.c | 2 ++
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]