diff options
author | Dan Winship <danw@gnome.org> | 2010-02-20 12:44:44 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-02-21 10:06:10 -0500 |
commit | ab3a4d1eafda14b04454343ad0ba59df3236503d (patch) | |
tree | 82dbd8af9dd1a1d64b0682595ad3167b250f3588 /tests/test-utils.c | |
parent | e25d2020015656efb36825fc189e84b04c5f6593 (diff) | |
download | libsoup-ab3a4d1eafda14b04454343ad0ba59df3236503d.tar.gz libsoup-ab3a4d1eafda14b04454343ad0ba59df3236503d.tar.bz2 libsoup-ab3a4d1eafda14b04454343ad0ba59df3236503d.zip |
Add SOUP_SESSION_SSL_STRICT, to control whether SSL cert errors are fatal
Based on a patch from Gustavo Noronha Silva
https://bugzilla.gnome.org/show_bug.cgi?id=610374
Diffstat (limited to 'tests/test-utils.c')
-rw-r--r-- | tests/test-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-utils.c b/tests/test-utils.c index 0b13ca17..8d7e9f62 100644 --- a/tests/test-utils.c +++ b/tests/test-utils.c @@ -231,6 +231,11 @@ soup_test_session_new (GType type, ...) session = (SoupSession *)g_object_new_valist (type, propname, args); va_end (args); + g_object_set (G_OBJECT (session), + SOUP_SESSION_SSL_CA_FILE, SRCDIR "/test-cert.pem", + SOUP_SESSION_SSL_STRICT, FALSE, + NULL); + if (http_debug_level && !logger) { SoupLoggerLogLevel level = MIN ((SoupLoggerLogLevel)http_debug_level, SOUP_LOGGER_LOG_BODY); |