From Mon Sep 17 00:00:00 2001
From: Matt McCutchen <matt@mattmccutchen.net>
Date: Fri, 27 Aug 2010 18:15:02 -0400

Recognize SOUP_SSL_CA_FILE environment variable for a default SSL CA file.
---
 libsoup/soup-session.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 46dd8ee..09b58be 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -195,6 +195,13 @@ soup_session_init (SoupSession *session)
 	priv->resolver = g_resolver_get_default ();
 
 	priv->ssl_strict = TRUE;
+
+	/* Take a default CA file from the environment - Matt */
+	const gchar *default_ca_file = g_getenv("SOUP_SSL_CA_FILE");
+	if (default_ca_file) {
+		g_message("Default SSL CA file is: %s", default_ca_file);
+		g_object_set(session, SOUP_SESSION_SSL_CA_FILE, default_ca_file, NULL);
+	}
 }
 
 static void
