OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

pkcs11 message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: New attribute: CKA_ATTRIBUTES


I'm getting into a bit of feature creep here, but I've often wished for an easier programmatic way to determine which attributes were applicable to which object. Here's one approach.

<text>

#define CKA_ATTRIBUTES   (<toBeAssigned> | CKF_ARRAY_ATTRIBUTE)

Data type is CK_ATTRIBUTE_TYPE_PTR

typedef *CK_ATTRIBUTE_TYPE CK_ATTRIBUTE_TYPE_PTR; // Needs to be added to CK_ATTRIBUTE_TYPE def

This is a read-only, non-sensitive attribute present on all or none of the objects in a token. If present it contains an array of CK_ATTRIBUTE_TYPE representing the complete set of valid attributes of that object. If an attribute may be used for for an object, regardless of the purpose or sensitivity of that attribute, it must be included in the set for that object.

</text>

It may be that we define two of these, one for all valid attributes, and one for attributes actually present.




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]