summaryrefslogtreecommitdiff
path: root/trust/tests/test-index.c
Commit message (Collapse)AuthorAgeFilesLines
* Move to non-recursive Makefile for building bins and libsStef Walter2014-08-151-1144/+0
| | | | Still use recursive for documentation and translation.
* trust: Add index callback for when an object is removedStef Walter2013-08-291-7/+92
| | | | This allows a token to remove the file if desired
* Fix various issues highlighted by coverity scannerStef Walter2013-07-181-3/+4
| | | | Among others fix possible usage of large stack allocation.
* trust: Fix bug with load validation failuresStef Walter2013-07-081-0/+50
|
* trust: Fix various issues writing objects in trust tokenStef Walter2013-07-081-17/+15
| | | | | | | | * Create directory before trying to write files to it * Handle write failures appropriately Refactor how we build and store objects in the index to handle the above cases properly.
* trust: Rename p11_index_batch() to p11_index_load()Stef Walter2013-07-031-6/+6
| | | | | | The name makes it clearer what's going on. This is only used during loading, so we can track whether a change has resulted from the trust module or from the file storage.
* Our own unit testing frameworkStef Walter2013-05-211-227/+168
| | | | | | | | * Support the TAP protocol * Much cleaner without having to carry around state * First class support for setup/teardown * Port the common tests * Wait on porting other tests until we've merged outstanding code
* Separate library init from message codeStef Walter2013-04-031-2/+1
| | | | | | | | | | | Put library init/uninit code its into their own statically linked library so that they don't get linked into the p11-kit executable. Refactor the message code so that the library initialization can plug in its per thread message buffer. https://bugs.freedesktop.org/show_bug.cgi?id=63046
* Fix memory leaks reported by 'make leakcheck'Stef Walter2013-03-201-0/+5
|
* Fix invalid memory accesses reported by 'make memcheck'Stef Walter2013-03-201-0/+2
| | | | These are things that showed up in valgrind while running the tests.
* trust: Rework index to be faster and more usableStef Walter2013-03-201-18/+18
| | | | | | | | | The index now uses a sort of cross between a hash table and a bloom filter internally to select matching items. This is needed for the massive amount of lookups we want to do during loading. In addition make p11_index_find() and p11_index_replace() easier to use.
* trust: Refactor to include concept of the indexStef Walter2013-03-151-0/+1063
* The index holds PKCS#11 objects whether for the token or for the session. * The index provides hook for a builder to expand or validate objects being added to the index. * In addition theres a change hook so that a builder can maintain state between objects, such as the compat NSS trust objects. https://bugs.freedesktop.org/show_bug.cgi?id=62329