Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | trust: Support token directory paths in user's home directory | Stef Walter | 2013-07-08 | 2 | -1/+2 |
| | |||||
* | trust: Explicitly specify which formats parser should parse | Stef Walter | 2013-07-08 | 5 | -28/+73 |
| | |||||
* | trust: Support using the parser without an asn1_cache | Stef Walter | 2013-07-08 | 3 | -7/+41 |
| | |||||
* | asn1: In p11_asn1_read() allocate an extra null terminator | Stef Walter | 2013-07-08 | 1 | -2/+5 |
| | | | | As a courtesy for callers. | ||||
* | common: Fix typo, and don't escape '6' in URL encoding | Stef Walter | 2013-07-08 | 1 | -1/+1 |
| | |||||
* | p11-kit: Add P11_KIT_MODULE_TRUSTED flag | Stef Walter | 2013-07-04 | 6 | -56/+98 |
| | | | | | A new flag to pass to p11_kit_modules_load() and related functions which limits loaded modules to ones with "trust-policy: yes". | ||||
* | trust: Port to use CKA_PUBLIC_KEY_INFO and updated trust store spec | Stef Walter | 2013-07-04 | 18 | -216/+561 |
| | | | | | | | | | | * Use the concepts and PKCS#11 objects described in the recently updated (still work in progress) storing trust spec. * Define our own CKA_X_PUBLIC_KEY_INFO define for now, since the the CKA_PUBLIC_KEY_INFO isn't defined yet. * Most notably, the association between certificates and stapled extensions is by public key. * Rework some of the tests to take into account the above. | ||||
* | trust: Add p11_oid_hash() and various oid strings | Stef Walter | 2013-07-04 | 3 | -5/+34 |
| | |||||
* | trust: Add p11_asn1_read() and p11_asn1_free() functions | Stef Walter | 2013-07-04 | 6 | -58/+74 |
| | | | | Some helpers for commonly used ASN.1 related stuff. | ||||
* | trust: Initial support for writing out token objects | Stef Walter | 2013-07-03 | 9 | -39/+443 |
| | | | | | * The objects are written out in the p11-kit persist format * Parser marks files in p11-kit persist format as modifiable | ||||
* | trust: If token path is a file, don't try loading subdirectories | Stef Walter | 2013-07-03 | 1 | -8/+15 |
| | |||||
* | trust: Correctly handle persisting OIDs with zero length | Stef Walter | 2013-07-03 | 1 | -2/+3 |
| | |||||
* | trust: Don't write out internal attributes when persisting | Stef Walter | 2013-07-03 | 4 | -15/+63 |
| | |||||
* | trust: Add support for saving files with unique file names | Stef Walter | 2013-07-03 | 8 | -114/+298 |
| | |||||
* | path: Add p11_path_canon() function | Stef Walter | 2013-07-03 | 4 | -9/+36 |
| | | | | Cleans up a filename with readable characters. | ||||
* | trust: Rename p11_index_batch() to p11_index_load() | Stef Walter | 2013-07-03 | 6 | -22/+22 |
| | | | | | | 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. | ||||
* | trust: Implement reloading of token data | Stef Walter | 2013-07-03 | 14 | -407/+746 |
| | | | | | | | | | | | | | | | * Reload token data whenever a new session is opened. * Only reload files/directories that have changed. * Move duplicate anchor/blacklist detection logic into the extract code. This is in line with the approach being discussed on the mailing lists and spec document. * New internal attribute CKA_X_ORIGIN set on all objects so we can track where an object came from, and replace it when reloaded. In general this is a prerequisite for modification of objects reload before modify is necessary to prevent multiple callers clobbering each other's changes. | ||||
* | iter: Add iteration mode where session is not busy | Stef Walter | 2013-07-03 | 10 | -57/+144 |
| | | | | | | | | | | | In order to use the session we are iterating on for other tasks such as other C_FindObject() calls, we need to make sure that it's not in the middle of a find operation. Finish up the complete find operation in advance of returning objects from a session. Make this the default mode. The previous behavior remains as an option. Add tests. | ||||
* | path: Add p11_path_prefix() function | Stef Walter | 2013-07-03 | 3 | -0/+33 |
| | | | | | Checks if a wellformed path is identical to or a prefix of another path. | ||||
* | trust: Implement validation for creating/modifying objects | Stef Walter | 2013-06-26 | 2 | -43/+661 |
| | |||||
* | Fix dependency between p11-kit command and library | Stef Walter | 2013-06-25 | 1 | -1/+1 |
| | |||||
* | Fix running trust module tests under distcheck | Stef Walter | 2013-06-25 | 1 | -10/+12 |
| | |||||
* | Reorganize various components | Stef Walter | 2013-06-25 | 76 | -826/+638 |
| | | | | | | | * p11-kit library and tool in the p11-kit/ subdirectory * trust module and new trust tool in trust/ subdirectory * No more tools/ subdirectory * Lots less in the common/ subdirectory | ||||
* | Merge branch 'stable' | Stef Walter | 2013-06-17 | 6 | -14/+21 |
|\ | |||||
| * | trust: Move the extract-trust external placeholder command into trust/ | Stef Walter | 2013-06-17 | 5 | -6/+7 |
| | | |||||
| * | trust: Print out usage when extract-trust run incorrectly | Stef Walter | 2013-06-17 | 1 | -1/+6 |
| | | | | | | | | Also sorta covers --help and -h usage | ||||
| * | tools: Fix passing args to external commands | Stef Walter | 2013-06-17 | 1 | -0/+4 |
| | | | | | | | | | | There were various bugs passing arguments, with duplicates being passed, as well as certain arguments being skipped.t | ||||
| * | tools: Only use our private path when looking for external commands | Stef Walter | 2013-06-17 | 1 | -7/+4 |
| | | | | | | | | | | | | | | | | | | Instead of looking for external commands in the path, just look for them in our private directory. We want to be conservative early on, and limit what sorta things we have to maintain later. We can later remove this restriction if a real use case presents itself. | ||||
* | | trust: Writable module PKCS#11 token functions | Stef Walter | 2013-06-17 | 4 | -30/+111 |
| | | | | | | | | | | | | Although we don't actually write anything out yet, make the various PKCS#11 functions behave properly when faced with requests to write to token objects | ||||
* | | trust: Correctly reflect the CK_TOKEN_INFO writability flags | Stef Walter | 2013-06-14 | 6 | -3/+187 |
| | | | | | | | | | | Correctly set the CKF_TOKEN_WRITE_PROTECTED flag for paths which we will be able to write to. | ||||
* | | path: Add p11_path_parent() function | Stef Walter | 2013-06-14 | 3 | -0/+55 |
| | | | | | | | | | | Gets the parent element of the path, removing the last component. Handles trailing and duplicate path separators correctly. | ||||
* | | path: Fix expanding of paths and tests | Stef Walter | 2013-06-14 | 2 | -25/+37 |
| | | |||||
* | | common: Abort test cases when one fails | Stef Walter | 2013-06-13 | 1 | -0/+2 |
| | | |||||
* | | Merge branch 'stable' | Stef Walter | 2013-06-05 | 4 | -5/+166 |
|\ \ | |/ | |||||
| * | Release version 0.18.3 | Stef Walter | 2013-06-05 | 2 | -1/+6 |
| | | |||||
| * | trust: Fix crash when C_Initialize args are NULL | Stef Walter | 2013-06-05 | 2 | -1/+22 |
| | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=65401 | ||||
| * | trust: Fix reinitialization of trust module | Stef Walter | 2013-06-05 | 3 | -4/+139 |
| | | | | | | | | | | | | | | | | | | Track number of C_Initialize calls, and require similar number of C_Finalize calls to finalize. This fixes leaks/disappearing sessions in the trust module. https://bugs.freedesktop.org/show_bug.cgi?id=65401 | ||||
| * | Fix uninitialized p11_library_once | manphiz@gmail.com | 2013-05-28 | 1 | -1/+1 |
| | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=57714 | ||||
| * | Force Mac OS shared library extension to .so | Stef Walter | 2013-05-28 | 1 | -1/+11 |
| | | | | | | | | | | | | | | Darwin and libtool seem confused about what shared library extension they actually use. https://bugs.freedesktop.org/show_bug.cgi?id=57714 | ||||
* | | Fix uninitialized p11_library_once | manphiz@gmail.com | 2013-05-28 | 1 | -1/+1 |
| | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=57714 | ||||
* | | Force Mac OS shared library extension to .so | Stef Walter | 2013-05-28 | 1 | -1/+11 |
| | | | | | | | | | | | | | | Darwin and libtool seem confused about what shared library extension they actually use. https://bugs.freedesktop.org/show_bug.cgi?id=57714 | ||||
* | | persist: Support for writing out p11-kit persist files | Stef Walter | 2013-05-27 | 5 | -90/+587 |
| | | |||||
* | | constants: Tweaks and add mechanisms | Stef Walter | 2013-05-27 | 2 | -253/+245 |
| | | |||||
* | | pem: Write PEM data directly to a buffer | Stef Walter | 2013-05-27 | 5 | -56/+71 |
| | | |||||
* | | url: Encode directly to a buffer | Stef Walter | 2013-05-27 | 4 | -46/+50 |
| | | |||||
* | | Release version 0.19.1 | Stef Walter | 2013-05-27 | 2 | -1/+12 |
| | | |||||
* | | Mark p11_kit_message() as a stable function | Stef Walter | 2013-05-21 | 2 | -3/+3 |
| | | |||||
* | | Fix building of applications using CRYPTOKI_GNU style | Stef Walter | 2013-05-21 | 1 | -1/+3 |
| | | |||||
* | | Bump the version for deprecated function documentation | Stef Walter | 2013-05-21 | 1 | -9/+9 |
| | | |||||
* | | Fix up Makefile.am files for automake 1.13 warnings | Stef Walter | 2013-05-21 | 7 | -8/+8 |
| | |