Lines Matching refs:new_attr
545 attribute_set_value(CK_ATTRIBUTE *new_attr,
550 if (new_attr == NULL)
552 else if (new_attr->pValue == NULL) {
556 find_attribute(new_attr->type, attributes, num_attributes, &attr);
562 if (attr->attribute.ulValueLen >= new_attr->ulValueLen) {
566 bzero((char *)attr->attribute.pValue + new_attr->ulValueLen,
567 attr->attribute.ulValueLen - new_attr->ulValueLen);
569 } else if (new_attr->ulValueLen <= sizeof (attr->generic_data)) {
594 newStorage = malloc(new_attr->ulValueLen);
602 (void) memcpy(attr->attribute.pValue, new_attr->pValue,
603 new_attr->ulValueLen);
604 attr->attribute.ulValueLen = new_attr->ulValueLen;