From b0de75186e8e529e427aae231b334a3e40e5bffd Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 19 Apr 2012 07:56:49 +0200 Subject: tls-test: Use a proper PKCS#11 mock module for testing * In empathy-tls-test.c use a proper PKCS#11 mock module, which we can place certificate anchors and pinned certificates in. * Fix EmpathyTlsVerifier to check for server trust assertions not client ones, this was a bug highlighted by fixing tests. https://bugzilla.gnome.org/show_bug.cgi?id=668186 https://bugzilla.gnome.org/show_bug.cgi?id=668261 --- tests/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/Makefile.am') diff --git a/tests/Makefile.am b/tests/Makefile.am index b6c49509f..5b6d31f28 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -16,6 +16,7 @@ AM_CPPFLAGS = \ $(EMPATHY_CFLAGS) \ $(WARN_CFLAGS) \ $(DISABLE_DEPRECATED) \ + -DSRCDIR=\""$(abs_srcdir)"\" \ $(NULL) LDADD = \ @@ -38,7 +39,8 @@ noinst_PROGRAMS = $(tests_list) TESTS = $(tests_list) empathy_tls_test_SOURCES = empathy-tls-test.c \ - test-helper.c test-helper.h + test-helper.c test-helper.h \ + mock-pkcs11.c mock-pkcs11.h empathy_irc_server_test_SOURCES = empathy-irc-server-test.c \ test-helper.c test-helper.h \ -- cgit v1.2.3