pkcs11: Function added to retrieve multiple attributes from a single object.

This commit is contained in:
Tobias Brunner
2011-11-02 20:27:54 +01:00
parent 817d165cbc
commit c198525104
2 changed files with 62 additions and 6 deletions
@@ -84,6 +84,24 @@ struct pkcs11_library_t {
CK_SESSION_HANDLE session, CK_ATTRIBUTE_PTR tmpl, CK_ULONG tcount,
CK_ATTRIBUTE_PTR attr, CK_ULONG acount);
/**
* This is very similar to the object enumerator but is only used to
* easily retrieve multiple attributes from a single object for which
* a handle is already known.
*
* The given attribute array is automatically filled in with the
* associated attributes. If the value of an output attribute is NULL,
* the required memory gets allocated/freed during enumeration.
*
* @param session session to use
* @param object object handle
* @param attr attributes to read from object
* @param count number of attributes to read
*/
enumerator_t* (*create_object_attr_enumerator)(pkcs11_library_t *this,
CK_SESSION_HANDLE session, CK_OBJECT_HANDLE object,
CK_ATTRIBUTE_PTR attr, CK_ULONG count);
/**
* Create an enumerator over supported mechanisms of a token.
*