summaryrefslogtreecommitdiff
path: root/tests/pin-test.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Initial port to win32Stef Walter2011-10-171-0/+3
| | | | | | | | * Tests do not all yet pass, at least not on wine * Added abstraction of some non-portable functions in compat.h/c * Build with an argument like this for win32 support: ./autogen.sh --host=i586-mingw32msvc * This win32 port needs more work from interested parties
* Update PKCS#11 URI code for new draft of specStef Walter2011-08-051-19/+19
| | | | | | | | | * 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.
* Add documentation for PIN callbacks.Stef Walter2011-07-061-9/+9
|
* Add P11KitPin structure, which encapsulates a returned pin.Stef Walter2011-07-061-51/+110
| | | | | * Lets us use variable size buffers. * Helps minimize copying.
* Rename p11_kit_pin_read_pinfile to p11_kit_pin_retrieveStef Walter2011-07-061-19/+19
| | | | * Fix up duplicate register logic as well.
* Implement support for registering and calling pinfile callbacksStef Walter2011-07-061-0/+237
* These are callbacks that hanlde the pinfile part of a PKCS#11 URI. * One library can register a callback that another can then call in a thread-safe and simple fashion.