summaryrefslogtreecommitdiffstats
path: root/pfind.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow collect_objects() to search through all objectclassesRich Megginson2010-04-121-6/+12
| | | | | | | | | | Added a pemAll to pemObjectType enum - changed collect_objects() to look through all types of objects if the caller did not specify a particular type of object to look for - some of the PK11 routines do not specify the type e.g. PK11_FindObjectForCert(): CK_ATTRIBUTE searchTemplate = { CKA_VALUE, NULL, 0 }; PK11_SETATTRS(&searchTemplate, CKA_VALUE, cert->derCert.data, cert->derCert.len);
* implement memory management for internal objectsKamil Dudka2009-08-201-1/+11
| | | | | | | | | | | | | | * ckpem.h: Define list objects, add reference counter to internal objects. * pfind.c: Increase object's reference while exporting. Skip already freed objects. * pinst.c (AddObjectIfNeeded): New function providing sharing of internal objects. * pobject.c: Add support for list objects. Implement pem_mdObject_Finalize(). * psession.c (pem_mdSession_CopyObject): Increase reference count only. Signed-off-by: Kamil Dudka <kdudka@redhat.com>
* Do not clone internal objects in collect_objects().Kamil Dudka2009-05-291-197/+28
| | | | 501118
* Fix gcc warnings.Kamil Dudka2009-05-291-1/+1
| | | | 500815
* Initial import of code. This is equivalent to the 20080124 tarball inRob Crittenden2009-05-221-0/+588
the Fedora nss package tree.