CT_AttrToString

Get the value of the given attribute as a printable string

Synopsis

CK_RV CT_AttrToString(CK_ATTRIBUTE_PTR pAttr,char* pStringVal,CK_SIZE* pStringValLen); 
Parameter Description
param pAttr pointer to the attribute whose value is to be stringified
pStringVal location to hold the value as a string (if NULL, the length required to hold the string is still copied into pStringValLen)
pStringValLen location to store the length of the value as a string (if pStringVal was supplied, this contains the number of bytes copied into the buffer or, if pStringVal is NULL, this contains the required size of the buffer to hold the value as a string).

On successful return

* pStringVal — pointer to the returned string value

* pStringValLen — length of the string