summaryrefslogtreecommitdiffstats
path: root/ckpem.h
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2009-12-17 14:52:44 -0700
committerRob Crittenden <rcritten@redhat.com>2010-04-12 16:50:56 -0400
commit36c0348e68e7aa8126b1e1f78c83de0979973c1b (patch)
tree14db86cdce1671e05cd7d7395f2671739757f1bd /ckpem.h
parentdb8838516783d5b0bcdecaa08e770812c64af8ee (diff)
downloadpemnss-36c0348e68e7aa8126b1e1f78c83de0979973c1b.tar.gz
pemnss-36c0348e68e7aa8126b1e1f78c83de0979973c1b.tar.xz
pemnss-36c0348e68e7aa8126b1e1f78c83de0979973c1b.zip
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);
Diffstat (limited to 'ckpem.h')
-rw-r--r--ckpem.h1
1 files changed, 1 insertions, 0 deletions
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,