[glib-networking/verify-paths] tests: try to fix test case with openssl > 1.0.2
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/verify-paths] tests: try to fix test case with openssl > 1.0.2
- Date: Thu, 25 Apr 2019 14:32:48 +0000 (UTC)
commit 17ef42fab4e36c5441a3e04f44b2b227ba6ba963
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Thu Apr 25 16:32:10 2019 +0200
tests: try to fix test case with openssl > 1.0.2
tls/tests/connection.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 310574f..ec868ca 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1336,7 +1336,11 @@ test_client_auth_request_fail (TestConnection *test,
/* FIXME: G_FILE_ERROR_ACCES is not a very great error to get here. */
if (client_can_receive_certificate_required_errors (test))
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined (LIBRESSL_VERSION_NUMBER)
g_assert_error (test->read_error, G_FILE_ERROR, G_FILE_ERROR_ACCES);
+#else
+ g_assert_error (test->read_error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
+#endif
else if (!g_error_matches (test->read_error, G_IO_ERROR, G_IO_ERROR_BROKEN_PIPE))
g_assert_error (test->read_error, G_TLS_ERROR, G_TLS_ERROR_MISC);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]