[glib-networking/wip/nacho/openssl] openssl: try to fix test



commit bff3bfacb3e61685e266cfb80952de56b2feb1d2
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Wed Sep 19 18:16:06 2018 +0200

    openssl: try to fix test

 tls/tests/connection.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 94c1e94..93080bb 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1225,7 +1225,11 @@ test_client_auth_request_fail (TestConnection *test,
   read_test_data_async (test);
   g_main_loop_run (test->loop);
 
+#if OPENSSL_VERSION_NUMBER > 0x10100000L
+  g_assert_error (test->read_error, G_TLS_ERROR, G_TLS_ERROR_CERTIFICATE_REQUIRED);
+#else
   g_assert_error (test->read_error, G_FILE_ERROR, G_FILE_ERROR_ACCES);
+#endif
 
   g_io_stream_close (test->server_connection, NULL, NULL);
   g_io_stream_close (test->client_connection, NULL, NULL);


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