From 36c0348e68e7aa8126b1e1f78c83de0979973c1b Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 17 Dec 2009 14:52:44 -0700 Subject: Allow collect_objects() to search through all objectclasses 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); --- ckpem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ckpem.h') diff --git a/ckpem.h b/ckpem.h index be74843..839d40b 100644 --- a/ckpem.h +++ b/ckpem.h @@ -95,6 +95,7 @@ struct pemTrustObjectStr { typedef struct pemTrustObjectStr pemTrustObject; typedef enum { + pemAll = -1, /* matches all types */ pemRaw, pemCert, pemBareKey, -- cgit