diff options
author | Dan Winship <danw@gnome.org> | 2013-01-07 16:30:55 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2013-01-07 16:30:55 -0500 |
commit | 645d0943d61885d714e39652b2af65cee4741d17 (patch) | |
tree | 0551b373d823a3adf287310d641739fe7348d9ab /tests | |
parent | c2ce0f99c1551161fdf6e13a9f83bf8cb656b6d6 (diff) | |
download | libsoup-645d0943d61885d714e39652b2af65cee4741d17.tar.gz libsoup-645d0943d61885d714e39652b2af65cee4741d17.tar.bz2 libsoup-645d0943d61885d714e39652b2af65cee4741d17.zip |
soup_message_get_https_status: provide info for failed attempts too
SoupMessage:tls-certificate and SoupMessage:tls-errors were only
getting set for successful https connections. It is useful to have
them be set on failed ones as well. Fix that, and make ssl-test test
it.
https://bugzilla.gnome.org/show_bug.cgi?id=690176
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ssl-test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ssl-test.c b/tests/ssl-test.c index 6d96bc79..7716f302 100644 --- a/tests/ssl-test.c +++ b/tests/ssl-test.c @@ -109,6 +109,10 @@ do_one_strict_test (SoupSession *session, char *uri, errors++; } } + if (!soup_message_get_https_status (msg, NULL, NULL)) { + debug_printf (1, " get_https_status returns FALSE?\n"); + errors++; + } g_object_unref (msg); } |