Bug 673678 - Property SSL_USE_SYSTEM_CA_FILE's value is ignored
Property SSL_USE_SYSTEM_CA_FILE's value is ignored
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: Misc
2.38.x
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2012-04-07 04:11 UTC by bugjakob
Modified: 2012-04-10 17:33 UTC (History)
1 user (show)

See Also:
GNOME target: ---
GNOME version: ---


Attachments

Description bugjakob 2012-04-07 04:11:18 UTC
This property is documented to be a boolean that defaults to true.  Instead, it defaults to off and doesn't check the value passed when being set, so setting it to either true or false does the same thing, turning the behavior on.

From libsoup/soup-session.c, set_property:

        case PROP_SSL_USE_SYSTEM_CA_FILE:
                if (priv->tlsdb) {
                        g_object_unref (priv->tlsdb);
                        priv->tlsdb = NULL;
                }
                g_free (priv->ssl_ca_file);
                priv->ssl_ca_file = NULL;

                priv->tlsdb = g_tls_backend_get_default_database (g_tls_backend_get_default ());
                break;

(The "value" parameter isn't referenced at all)
Comment 1 Dan Winship 2012-04-10 17:33:37 UTC
Fixed in master, and will be in 2.38.1. Thanks.

Note You need to log in before you can comment on or make changes to this bug.