[libsoup/carlosgc/client-side-certs2: 15/17] ssl-test: Handle behavior change of upstream glib-networking




commit 283d1e918d94ebd36ded10b47a053c63109f2a25
Author: Patrick Griffis <pgriffis igalia com>
Date:   Sun May 30 11:09:59 2021 -0500

    ssl-test: Handle behavior change of upstream glib-networking

 tests/ssl-test.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index dde8f807..1202b921 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -436,7 +436,11 @@ do_tls_interaction_msg_test (gconstpointer data)
                                 G_CALLBACK (request_certificate_cb),
                                 pkcs11_certificate);
                 body = soup_test_session_async_send (session, msg, NULL, &error);
-                g_assert_error (error, G_IO_ERROR, G_IO_ERROR_CONNECTION_CLOSED);
+#if GLIB_CHECK_VERSION (2, 69, 0)
+                g_assert_error (error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
+#else
+                g_assert_error (error, G_IO_ERROR, G_IO_ERROR_CONNECTION_REFUSED);
+#endif
                 g_clear_error (&error);
                 g_bytes_unref (body);
                 g_object_unref (msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]