[libsoup/nacho/server-tls-cert: 2/2] ssl-test: fix ciphersuite name when using openssl
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/nacho/server-tls-cert: 2/2] ssl-test: fix ciphersuite name when using openssl
- Date: Thu, 25 Nov 2021 09:19:49 +0000 (UTC)
commit b39a995e969dd568fef7e8f7affb40c4fcd68f0a
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Tue Nov 23 16:08:17 2021 +0100
ssl-test: fix ciphersuite name when using openssl
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 2b23cb93..edd66f36 100644
--- a/tests/ssl-test.c
+++ b/tests/ssl-test.c
@@ -74,7 +74,11 @@ do_strictness_test (gconstpointer data)
if (test->expected_status == SOUP_STATUS_OK) {
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");
+ if (g_strcmp0 (g_type_name (G_TYPE_FROM_INSTANCE (g_tls_backend_get_default ())),
"GTlsBackendGnutls") == 0) {
+ g_assert_cmpstr (soup_message_get_tls_ciphersuite_name (msg), ==,
"TLS_AES-256-GCM_SHA384");
+ } else {
+ 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]