summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2022-01-01 13:32:00 -0600
committerPatrick Griffis <pgriffis@igalia.com>2022-01-01 13:32:00 -0600
commit3b8768e6dabc539ee523ac3579307c4d4ab4dd6b (patch)
tree32047f675166a68431e2c73e938372568801bf5e
parent50ae331b7aed4b3f7f85cfb53889d58e8ed44d48 (diff)
downloadlibsoup-3b8768e6dabc539ee523ac3579307c4d4ab4dd6b.tar.gz
tests: Fix ssl-test with latest glib-networking changes
Discussed in !194
-rw-r--r--tests/ssl-test.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/ssl-test.c b/tests/ssl-test.c
index ecd0e63e..12f81af5 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -73,8 +73,11 @@ do_strictness_test (gconstpointer data)
flags = soup_message_get_tls_peer_certificate_errors (msg);
if (test->expected_status == SOUP_STATUS_OK) {
+ const char *ciphersuite_name = soup_message_get_tls_ciphersuite_name (msg);
+ /* Format changed in https://gitlab.gnome.org/GNOME/glib-networking/-/merge_requests/194 */
+ g_assert_true (!g_strcmp0 (ciphersuite_name, "TLS_AES-256-GCM_SHA384")
+ || !g_strcmp0 (ciphersuite_name, "TLS_AES_256_GCM_SHA384"));
g_assert_cmpuint (soup_message_get_tls_protocol_version (msg), ==, G_TLS_PROTOCOL_VERSION_TLS_1_3);
- g_assert_cmpstr (soup_message_get_tls_ciphersuite_name (msg), ==, "TLS_AES-256-GCM_SHA384");
} else {
g_assert_cmpuint (soup_message_get_tls_protocol_version (msg), ==, G_TLS_PROTOCOL_VERSION_UNKNOWN);
g_assert_null (soup_message_get_tls_ciphersuite_name (msg));