summaryrefslogtreecommitdiff
path: root/gdata/gdata-service.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2012-03-08 00:09:08 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2012-03-08 09:14:39 +0000
commit6799f2c525a584dc998821a6ce897e463dad7840 (patch)
treea51555ff3f90e23ea5e6d78506675fd6725978bc /gdata/gdata-service.c
parentcfc23bfe8fae81485f424965ec4157993cf655e6 (diff)
downloadlibgdata-6799f2c525a584dc998821a6ce897e463dad7840.tar.gz
core: Validate SSL certificates for all connections
This prevents MitM attacks which use spoofed SSL certificates. Note that this bumps our libsoup requirement to 2.37.91. Closes: https://bugzilla.gnome.org/show_bug.cgi?id=671535
Diffstat (limited to 'gdata/gdata-service.c')
-rw-r--r--gdata/gdata-service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 93ac8fb8..de9f020f 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -2134,7 +2134,7 @@ _gdata_service_get_log_level (void)
SoupSession *
_gdata_service_build_session (void)
{
- SoupSession *session = soup_session_sync_new ();
+ SoupSession *session = soup_session_sync_new_with_options (SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE, NULL);
#ifdef HAVE_GNOME
soup_session_add_feature_by_type (session, SOUP_TYPE_GNOME_FEATURES_2_26);