summaryrefslogtreecommitdiffstats
path: root/ckpem.h
Commit message (Collapse)AuthorAgeFilesLines
* Allow collect_objects() to search through all objectclassesRich Megginson2010-04-121-0/+1
| | | | | | | | | | 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-3/+23
| | | | | | | | | | | | | | * 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>
* Fix various memory leaks and free internal objects on module unload.Kamil Dudka2009-05-291-1/+2
| | | | | | Elio helped me to complete the patch. 501080
* Initial import of code. This is equivalent to the 20080124 tarball inRob Crittenden2009-05-221-0/+239
the Fedora nss package tree.