[glib-networking/wip/openssl-2-46: 27/28] openssl: enable tests for the interaction



commit a0a7354aedfc576c178c06f153e489806e79a3f4
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Fri Nov 6 15:41:20 2015 +0100

    openssl: enable tests for the interaction

 tls/tests/Makefile.am  |    2 +-
 tls/tests/connection.c |    6 ------
 2 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/tls/tests/Makefile.am b/tls/tests/Makefile.am
index 8772b46..2621895 100644
--- a/tls/tests/Makefile.am
+++ b/tls/tests/Makefile.am
@@ -47,7 +47,7 @@ certificate_openssl_SOURCES = certificate.c
 certificate_openssl_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_CFLAGS) -DBACKEND=\""openssl"\" 
-DWITH_BACKEND_OPENSSL
 certificate_openssl_LDADD = $(GLIB_LIBS) $(OPENSSL_LIBS)
 
-connection_openssl_SOURCES = connection.c
+connection_openssl_SOURCES = connection.c mock-interaction.c mock-interaction.h
 connection_openssl_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_CFLAGS) -DBACKEND=\""openssl"\" -DWITH_BACKEND_OPENSSL
 connection_openssl_LDADD = $(GLIB_LIBS) $(OPENSSL_LIBS)
 
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 27b06d6..6ffad8b 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -24,9 +24,7 @@
 
 #include "config.h"
 
-#ifdef WITH_BACKEND_GNUTLS
 #include "mock-interaction.h"
-#endif
 
 #include <gio/gio.h>
 
@@ -1010,7 +1008,6 @@ test_client_auth_failure (TestConnection *test,
   g_assert (accepted_changed == TRUE);
 }
 
-#ifdef WITH_BACKEND_GNUTLS
 static void
 test_client_auth_request_cert (TestConnection *test,
                                gconstpointer   data)
@@ -1100,7 +1097,6 @@ test_client_auth_request_fail (TestConnection *test,
   g_io_stream_close (test->server_connection, NULL, NULL);
   g_io_stream_close (test->client_connection, NULL, NULL);
 }
-#endif
 
 static void
 test_connection_no_database (TestConnection *test,
@@ -1931,12 +1927,10 @@ main (int   argc,
               setup_connection, test_client_auth_rehandshake, teardown_connection);
   g_test_add ("/tls/connection/client-auth-failure", TestConnection, NULL,
               setup_connection, test_client_auth_failure, teardown_connection);
-#ifdef WITH_BACKEND_GNUTLS
   g_test_add ("/tls/connection/client-auth-request-cert", TestConnection, NULL,
               setup_connection, test_client_auth_request_cert, teardown_connection);
   g_test_add ("/tls/connection/client-auth-request-fail", TestConnection, NULL,
               setup_connection, test_client_auth_request_fail, teardown_connection);
-#endif
   g_test_add ("/tls/connection/no-database", TestConnection, NULL,
               setup_connection, test_connection_no_database, teardown_connection);
   g_test_add ("/tls/connection/failed", TestConnection, NULL,


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