[libsoup] SoupSession: fix some SSL problems
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupSession: fix some SSL problems
- Date: Thu, 20 Oct 2011 21:13:15 +0000 (UTC)
commit 32ba2e568824577ed8de32674e5b5022c007f85e
Author: Dan Winship <danw gnome org>
Date: Thu Oct 20 17:00:35 2011 -0400
SoupSession: fix some SSL problems
Setting SSL_CA_FILE to NULL should not cause warnings. Also, fix SSL
strictness: it should only be TRUE when we have a tlsdb.
libsoup/soup-session.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index 75d6b1c..bd593dc 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -987,7 +987,8 @@ set_property (GObject *object, guint prop_id,
g_free (priv->ssl_ca_file);
priv->ssl_ca_file = g_value_dup_string (value);
- load_ssl_ca_file (priv);
+ if (priv->ssl_ca_file)
+ load_ssl_ca_file (priv);
break;
case PROP_SSL_USE_SYSTEM_CA_FILE:
if (priv->tlsdb) {
@@ -1551,7 +1552,7 @@ soup_session_get_connection (SoupSession *session,
SOUP_CONNECTION_PROXY_URI, item->proxy_uri,
SOUP_CONNECTION_SSL, uri->scheme == SOUP_URI_SCHEME_HTTPS,
SOUP_CONNECTION_SSL_CREDENTIALS, priv->tlsdb,
- SOUP_CONNECTION_SSL_STRICT, priv->ssl_strict,
+ SOUP_CONNECTION_SSL_STRICT, (priv->tlsdb != NULL) && priv->ssl_strict,
SOUP_CONNECTION_ASYNC_CONTEXT, priv->async_context,
SOUP_CONNECTION_TIMEOUT, priv->io_timeout,
SOUP_CONNECTION_IDLE_TIMEOUT, priv->idle_timeout,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]