ReadAttr
Read an attribute value from an attribute set. Return TRUE
if the attribute was present.
Synopsis
int ReadAttr(
void * buf,
unsigned int len,
unsigned int * plen,
CK_ATTRIBUTE_TYPE attrType,
const TOK_ATTR_DATA * attr);
Parameter | Description |
---|---|
buf | Buffer to receive attribute value |
len | Number of bytes referenced by buf |
plen | Reference to int to hold number of bytes copied to buf |
attrType | Type of attribute to extract from attr |
attr | Attribute set to search |
On Successful Return
buf — contains attribute value
plen — references number of bytes copied into buf