GNOME Bugzilla – Bug 681120
gnutls: More tests for GTlsFileDatabaseGnutls
Last modified: 2012-08-03 16:05:37 UTC
Complete basic code coverage for that file before making more changes.
Created attachment 220219 [details] [review] gnutls: More tests for GTlsFileDatabaseGnutls * Check the properties * Check looking up certificates by issuer
Comment on attachment 220219 [details] [review] gnutls: More tests for GTlsFileDatabaseGnutls >+ const guchar ISSUER[] = "\x30\x81\x86\x31\x13\x30\x11\x06\x0A\x09\x92\x26\x89\x93\xF2" >+ "\x2C\x64\x01\x19\x16\x03\x43\x4F\x4D\x31\x17\x30\x15\x06\x0A" We may want to replace the test certificates at some point (eg, to add some new extension/attribute/whatever), in which case it would be nice to have a hint as to how to regenerate this value... >+ g_assert (certificate_is_in_list (certificates, TEST_FILE ("server.pem"))); I know you already checked the length of the list, but I'd add g_assert (!certificate_is_in_list (certificates, TEST_FILE ("server-self.pem"))); just for extra sanity-checking (OK to commit with those changes)
Dan, can you give a quick review for the the bug in gcr that this depends on?
Comment on attachment 220219 [details] [review] gnutls: More tests for GTlsFileDatabaseGnutls Committed with changes.