Provide a public PKCS#11 mechanism enumerator

This commit is contained in:
Martin Willi
2010-08-04 09:26:21 +02:00
parent efab731338
commit 5a27bf8ad8
3 changed files with 117 additions and 44 deletions
@@ -62,6 +62,18 @@ struct pkcs11_library_t {
CK_SESSION_HANDLE session, CK_ATTRIBUTE_PTR tmpl, CK_ULONG tcount,
CK_ATTRIBUTE_PTR attr, CK_ULONG acount);
/**
* Create an enumerator over supported mechanisms of a token.
*
* The resulting enumerator enumerates over the mechanism type, and if
* a non-NULL pointer is given, over the mechanism info details.
*
* @param slot slot of the token
* @return enumerator over (CK_MECHANISM_TYPE, CK_MECHANISM_INFO)
*/
enumerator_t* (*create_mechanism_enumerator)(pkcs11_library_t *this,
CK_SLOT_ID slot);
/**
* Destroy a pkcs11_library_t.
*/