Lines Matching refs:attrp
357 CK_ATTRIBUTE_INFO_PTR attrp;
360 attrp = calloc(1, sizeof (attribute_info_t));
361 if (attrp == NULL) {
366 attrp->attr.type = template->type;
367 attrp->attr.ulValueLen = template->ulValueLen;
372 attrp->attr.pValue = malloc(template->ulValueLen);
373 if (attrp->attr.pValue == NULL) {
374 free(attrp);
378 (void) memcpy(attrp->attr.pValue, template->pValue,
381 attrp->attr.pValue = NULL;
386 object_p->extra_attrlistp = attrp;
387 attrp->next = NULL;
389 attrp->next = object_p->extra_attrlistp;
390 object_p->extra_attrlistp = attrp;
406 CK_ATTRIBUTE_INFO_PTR attrp;
409 attrp = calloc(1, sizeof (attribute_info_t));
410 if (attrp == NULL) {
414 attrp->attr.type = old_attrp->attr.type;
415 attrp->attr.ulValueLen = old_attrp->attr.ulValueLen;
419 attrp->attr.pValue = malloc(old_attrp->attr.ulValueLen);
420 if (attrp->attr.pValue == NULL) {
421 free(attrp);
425 (void) memcpy(attrp->attr.pValue, old_attrp->attr.pValue,
428 attrp->attr.pValue = NULL;
433 object_p->extra_attrlistp = attrp;
434 attrp->next = NULL;
436 attrp->next = object_p->extra_attrlistp;
437 object_p->extra_attrlistp = attrp;