summaryrefslogtreecommitdiff
path: root/tests/uri-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Move debug and library code into the common/ subdirectoryStef Walter2013-01-091-1221/+0
| | | | | | | | | | | Start using p11_ as our internal prefix rather than _p11_. We explicitly export p11_kit_ so this is fine as far as visibility. Move the threading, mutex, and module compat, dict, and array code into the common directory too. Take this opportunity to clean up a bit of internal API as well, since so many lines are being touched internally.
* Always encode the "id" attribute in URIsDan Winship2012-07-281-1/+1
| | | | | | Per recommendation of the spec. https://bugs.freedesktop.org/show_bug.cgi?id=52606
* Preconditions to check for input probs and out of memoryStef Walter2012-05-131-2/+10
| | | | | | * We don't try to guarantee completely robust and problem free behavior in cases where the caller or process isn't behaving. We consider these to be outside of our control.
* Compile CuTest.c separately.Andreas Metzler2011-12-231-2/+0
| | | | | Use regular compile and link instead of having #include "CuTest.c" in every test. Works around gcc optimization issue.
* Rename non-static functions to have a _p11_xxx prefix.Stef Walter2011-10-241-1/+4
| | | | | | | * Work around issues with brain-dead linkers not respecting the libtool -export-symbol-regex argument https://bugs.freedesktop.org/show_bug.cgi?id=42020
* Ignore spaces in PKCS#11 URIsStef Walter2011-08-191-0/+24
| | | | | | * These should be able to occur anywhere and should be ignored according to RFC 3986. This is documented in the PKCS#11 URI specification.
* Update PKCS#11 URI code for new draft of specStef Walter2011-08-051-30/+30
| | | | | | | | | * pinfile attribute was renamed to pin-source * objecttype attribute was renamed to object-type * secretkey value was renamed to secret-key We continue to support parsing the old attribute names and values but generate URIs with the new ones.
* Fix URI parsing memory leaks.Stef Walter2011-06-071-0/+1
|
* Fix compiler warnings.Stef Walter2011-06-071-0/+1
|
* Cleanup URI typesStef Walter2011-05-301-42/+42
| | | | | * Support with/without library version. * Make names of types clearer.
* Change around installation of headers, pkg-config, and file namesStef Walter2011-05-271-1/+1
| | | | | | | | * Install headers to ${prefix}/include/p11-kit-1/p11-kit/ * This solves problems with other projects that have their own pkcs11.h files. * Change the pkg-config file name to p11-kit-1.pc * Change the source file names.
* Add functions for clearing and setting multiple attributes on URI.Stef Walter2011-05-261-4/+37
|
* URI API fine tuningStef Walter2011-05-261-0/+103
| | | | | | * Rework API for getting all the attributes, to match usage in PKCS#11 * Add support for pinfile argument in URIs. * Complete tests.
* Documentation and API cleanup.Stef Walter2011-03-311-41/+41
| | | | | | * Rename source directory * More consistent with return values from URI functions. * Allow formatting URI to take a uri type.
* Reference implementation of PKCS#11 URIsStef Walter2011-02-191-0/+1050