Lines Matching refs:attributes
83 CK_ATTRIBUTE *attributes; member
201 const CK_ATTRIBUTE *attributes, in attributes_match() argument
212 if (attributes[i].type == obj->attrs[j].attribute.type && in attributes_match()
213 attributes[i].ulValueLen == obj->attrs[j].attribute.ulValueLen && in attributes_match()
214 memcmp(attributes[i].pValue, obj->attrs[j].attribute.pValue, in attributes_match()
215 attributes[i].ulValueLen) == 0) { in attributes_match()
221 st_logf("type %d attribute have no match\n", attributes[i].type); in attributes_match()
230 print_attributes(const CK_ATTRIBUTE *attributes, in print_attributes() argument
239 switch (attributes[i].type) { in print_attributes()
242 if (attributes[i].ulValueLen != sizeof(CK_BBOOL)) { in print_attributes()
246 ck_true = attributes[i].pValue; in print_attributes()
252 if (attributes[i].ulValueLen != sizeof(CK_ULONG)) { in print_attributes()
256 class = attributes[i].pValue; in print_attributes()
296 st_logf("[unknown 0x%08lx]", (unsigned long)attributes[i].type); in print_attributes()
650 if (state->find.attributes) { in find_object_final()
654 if (state->find.attributes[i].pValue) in find_object_final()
655 free(state->find.attributes[i].pValue); in find_object_final()
657 free(state->find.attributes); in find_object_final()
658 state->find.attributes = NULL; in find_object_final()
680 if (state->find.attributes) { in close_session()
879 soft_token.state[i].find.attributes = NULL; in C_Initialize()
1323 state->find.attributes = in C_FindObjectsInit()
1324 calloc(1, ulCount * sizeof(state->find.attributes[0])); in C_FindObjectsInit()
1325 if (state->find.attributes == NULL) in C_FindObjectsInit()
1328 state->find.attributes[i].pValue = in C_FindObjectsInit()
1330 if (state->find.attributes[i].pValue == NULL) { in C_FindObjectsInit()
1334 memcpy(state->find.attributes[i].pValue, in C_FindObjectsInit()
1336 state->find.attributes[i].type = pTemplate[i].type; in C_FindObjectsInit()
1337 state->find.attributes[i].ulValueLen = pTemplate[i].ulValueLen; in C_FindObjectsInit()
1343 state->find.attributes = NULL; in C_FindObjectsInit()
1379 state->find.attributes, in C_FindObjects()