[libsoup/nacho/server-tls-cert] 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] ssl-test: fix ciphersuite name when using openssl
- Date: Tue, 23 Nov 2021 15:09:24 +0000 (UTC)
commit 55eecbf910c165601404d05559a865a626f6b0e6
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 0888950f..cdf7df3b 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]