summaryrefslogtreecommitdiff
path: root/p11-kit/pin.c
Commit message (Collapse)AuthorAgeFilesLines
* Use EFBIG as the error code when pin file is too largeStef Walter2012-07-171-1/+1
| | | | * The previous EOVERFLOW was not supported on mingw
* Don't allow reading of pin files larger than 4096 bytesStef Walter2012-06-291-7/+12
| | | | * p11_kit_pin_file_callback() only returns pins up to 4096 bytes now
* Preconditions to check for input probs and out of memoryStef Walter2012-05-131-72/+66
| | | | | | * 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.
* Doc tweaks for PIN functionalityStef Walter2012-04-161-19/+28
|
* Rename non-static functions to have a _p11_xxx prefix.Stef Walter2011-10-241-20/+20
| | | | | | | * Work around issues with brain-dead linkers not respecting the libtool -export-symbol-regex argument https://bugs.freedesktop.org/show_bug.cgi?id=42020
* Update PKCS#11 URI code for new draft of specStef Walter2011-08-051-63/+63
| | | | | | | | | * 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.
* Reimplement and remove apache licensed bits of code.Stef Walter2011-07-271-3/+3
| | | | | | | | | | * Reimplement the various bits of the hash table that were still based on the apache apr code. Use different algorithms for hashing, lookup and other stuff. * Use this as an opportunity to cleanup that code and make it more legible. https://bugzilla.redhat.com/show_bug.cgi?id=725905
* pin: Fix uninitialized variableStef Walter2011-07-121-1/+1
|
* More fine tuning of the pin APIs.Stef Walter2011-07-061-2/+16
|
* Add documentation for PIN callbacks.Stef Walter2011-07-061-65/+263
|
* Add P11KitPin structure, which encapsulates a returned pin.Stef Walter2011-07-061-12/+159
| | | | | * Lets us use variable size buffers. * Helps minimize copying.
* Rename p11_kit_pin_read_pinfile to p11_kit_pin_retrieveStef Walter2011-07-061-6/+7
| | | | * Fix up duplicate register logic as well.
* Implement support for registering and calling pinfile callbacksStef Walter2011-07-061-0/+332
* 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.