summaryrefslogtreecommitdiff
path: root/common/attrs.h
Commit message (Collapse)AuthorAgeFilesLines
* Add the log-calls module config optionStef Walter2013-05-211-0/+9
| | | | | If 'log-calls = yes' is set then all the PKCS#11 modules are logged to stderr.
* attrs: Print out the CKA_VALUE for certificates when debuggingStef Walter2013-03-201-4/+10
| | | | | | | | While it's true that we shouldn't be pritning out CKA_VALUE in certain cases, like for keys, we obviously can do so for certificates. We don't have keys anyway, but in the interest of being general purpose use the class to determine whether CKA_VALUE can be printed
* attrs: Change p11_attrs_to_string() to allow static templatesStef Walter2013-03-181-1/+2
| | | | | Allow passing the number of attributes to print, which lets us use this directly on templates passed in by callers of the PKCS#11 API.
* Refine looking up of attributes in arraysStef Walter2013-03-181-8/+3
| | | | | | | | There was a class of bugs for looking up invalid or empty attributes in the internal PKCS#11 attribute arrays. * Refine what p11_attrs_find_valid() treats as valid * Rename p11_attrs_is_empty() to p11_attrs_terminator() for clarity
* trust: Update frob-nss-tool so it can compare modules for trust infoStef Walter2013-03-151-0/+2
| | | | | Can run with two modules now so that it can compare tokens NSS trust info.
* attrs: New p11_attrs_merge() functionStef Walter2013-03-151-0/+4
| | | | | | | This takes one set of attributes and merges them into another, without copying memory needlessly. https://bugs.freedesktop.org/show_bug.cgi?id=62329
* Further tweaks and cleanup for functions dealing with PKCS#11 attributesStef Walter2013-02-041-13/+46
| | | | | | | | * Check that the size is correct when looking for a boolean or a ulong. * Make sure that the length is not the invalid negative ulong. * Functions for dumping out attribute contents * Make it possible to use attributes in hash tables
* Add common functions for manipulating CK_ATTRIBUTE arraysStef Walter2013-01-091-0/+86