Lines Matching refs:attrp
450 CK_ATTRIBUTE_INFO_PTR attrp;
453 attrp = calloc(1, sizeof (attribute_info_t));
454 if (attrp == NULL) {
459 attrp->attr.type = template->type;
460 attrp->attr.ulValueLen = template->ulValueLen;
465 attrp->attr.pValue = malloc(template->ulValueLen);
466 if (attrp->attr.pValue == NULL) {
467 free(attrp);
471 (void) memcpy(attrp->attr.pValue, template->pValue,
474 attrp->attr.pValue = NULL;
479 object_p->extra_attrlistp = attrp;
480 attrp->next = NULL;
482 attrp->next = object_p->extra_attrlistp;
483 object_p->extra_attrlistp = attrp;
540 CK_ATTRIBUTE_INFO_PTR attrp;
543 attrp = calloc(1, sizeof (attribute_info_t));
544 if (attrp == NULL) {
548 attrp->attr.type = old_attrp->attr.type;
549 attrp->attr.ulValueLen = old_attrp->attr.ulValueLen;
553 attrp->attr.pValue = malloc(old_attrp->attr.ulValueLen);
554 if (attrp->attr.pValue == NULL) {
555 free(attrp);
559 (void) memcpy(attrp->attr.pValue, old_attrp->attr.pValue,
562 attrp->attr.pValue = NULL;
567 object_p->extra_attrlistp = attrp;
568 attrp->next = NULL;
570 attrp->next = object_p->extra_attrlistp;
571 object_p->extra_attrlistp = attrp;