aboutsummaryrefslogtreecommitdiffstats
path: root/tests/empathy-tls-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename NUM_TP_ to TP_NUM_Xavier Claessens2013-10-101-1/+1
|
* add missing config.h includesGuillaume Desmottes2013-09-171-0/+2
|
* tls-test: use tp-glib single headersGuillaume Desmottes2013-09-171-1/+2
|
* Clean up #include directives in source filesEmanuele Aina2013-04-021-6/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=697076
* Reorder header inclusions accordingly to the Telepathy coding styleEmanuele Aina2013-04-021-7/+4
| | | | | | | | | | | | Sort by: • "config.h" • API declarations, if any • public libraries • internal headers, alphabetically sorted (mostly) http://telepathy.freedesktop.org/wiki/Style#A.23includes https://bugzilla.gnome.org/show_bug.cgi?id=697076
* Use a flat namespace for internal includesEmanuele Aina2013-04-011-1/+1
| | | | | | | | Directly add the libempathy, libempathy-gtk and extensions directories to the include search path. This decouples header inclusions from their location and helps when reorganizing the source files layout. https://bugzilla.gnome.org/show_bug.cgi?id=696950
* Use double quotes for all internal headersEmanuele Aina2013-04-011-1/+1
| | | | | | | This makes a bit more obvious which headers come from public libraries and which ones come from uninstalled utility libraries. https://bugzilla.gnome.org/show_bug.cgi?id=696950
* tests: Fix empathy-tls-testStef Walter2013-02-061-27/+27
| | | | | | | * Create new certificates * Add a make target for rebuilding the certificates in the future https://bugzilla.gnome.org/show_bug.cgi?id=693190
* Use TpTpTLSCertificateGuillaume Desmottes2012-05-101-28/+29
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=674318
* tls-test: Use a proper PKCS#11 mock module for testingStef Walter2012-04-191-42/+115
| | | | | | | | | | | * 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
* empathy-tls-test: use g_assert_(no_)error()Guillaume Desmottes2012-01-191-22/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=668186
* Use _unref instead of _free _destroy when possible.unrefXavier Claessens2011-11-161-2/+2
| | | | | | | | | | | Replace g_(ptr_)array_free (foo, TRUE) and g_hash_table_destroy with respectively g_(ptr_)array_unref (foo) and g_hash_table_unref. I used this command to generate this patch: for f in `find -name "*.c"`; do sed -i $f -re 's/g_ptr_array_free \(([^ ,]+), TRUE\)/g_ptr_array_unref \(\1\)/'; done See Danielle's blog for explanation of possible bug _free can do: http://blogs.gnome.org/danni/2011/11/16/mistakes-with-g_value_set_boxed/
* Fix calls to empathy_tls_verifier_new() in tests.Stef Walter2011-03-231-11/+76
|
* tests: Fix memory leak of dbus connectionStef Walter2010-12-241-0/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=636258#c3
* libempathy, tests: Wrap new function arguments properly.Stef Walter2010-12-241-11/+24
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=636258#c3
* tests: Lookup the pkcs11 standalone directory at run time.Stef Walter2010-12-241-1/+20
| | | | | Rather than cluttering up configure, lookup the relevant directory at runtime.
* test: Add tests which load PKCS#11 modules for TLS verification.Stef Walter2010-12-241-45/+234
| | | | | | Add various tests which load gnome-keyring PKCS#11 modules and use them in the TLS verification. These are the standalone versions of the builtin gnome-keyring PKCS#11 modules.
* tests: Add test for basic verification.Stef Walter2010-12-241-13/+47
| | | | | This test depends on the certificates you have in gnome-keyring, will fix this dependency in later commits.
* tests: Add mock object and test infrastructure for testing tls.Stef Walter2010-12-241-0/+356
Create a mock o.f.T.Authentication.TLSCertificate object and connect to it in various tests. Loads certificate data from certificates/ subdir