KM_EnumerateAttributes
Enumerate all attributes for an object, returning a complete template containing all the objects attributes.
Synopsis
#include <kmlib.h>
CK_RV KM_EnumerateAttributes (
CK_SESSION_HANDLE hSession,
CK_OBJECT_HANDLE hObj,
CK_ATTRIBUTE * pTpl,
CK_SIZE * pTplSize
);
Parameter | Description |
---|---|
hSession | Handle to valid session. |
hObj | Handle to the object whose attributes are to be enumerated. |
pTpl | Points to an array of attributes, which are to be filled out by the function. If this parameter is NULL, no attributes are copied into the array. |
pTplSize | The size of the pTpl array. Upon successful completion of the function, this parameter will contain the number of attributes contained in hObj. |
Returns
CKR_ARGUMENTS_BAD
CKR_ATTRIBUTE_SENSITIVE
CKR_ATTRIBUTE_TYPE_INVALID
CKR_BUFFER_TOO_SMALL
CKR_CRYPTOKI_NOT_INITIALIZED
CKR_DEVICE_ERROR
CKR_DEVICE_MEMORY
CKR_DEVICE_REMOVED
CKR_FUNCTION_FAILED
CKR_GENERAL_ERROR
CKR_HOST_MEMORY
CKR_OBJECT_HANDLE_INVALID
CKR_OK
CKR_SESSION_CLOSED
CKR_SESSION_HANDLE_INVALID