Lines Matching refs:clone_template
598 if (object->clone_template) { in meta_object_dealloc()
600 freezero((object->clone_template)[i].pValue, in meta_object_dealloc()
601 (object->clone_template)[i].ulValueLen); in meta_object_dealloc()
603 free(object->clone_template); in meta_object_dealloc()
982 if (object->clone_template == NULL) { in clone_by_create()
993 object->clone_template, in clone_by_create()
997 object->clone_template, in clone_by_create()
1003 dst_slot_session->hSession, object->clone_template, in clone_by_create()
1008 object->clone_template, object->clone_template_size, in clone_by_create()
1612 CK_ATTRIBUTE *clone_template; in meta_clone_template_setup() local
1615 clone_template = malloc(num_attributes * sizeof (CK_ATTRIBUTE)); in meta_clone_template_setup()
1616 if (clone_template == NULL) { in meta_clone_template_setup()
1635 clone_template[c].type = attributes[i].attribute.type; in meta_clone_template_setup()
1636 clone_template[c].ulValueLen = in meta_clone_template_setup()
1639 clone_template[c].pValue = malloc(clone_template[c].ulValueLen); in meta_clone_template_setup()
1640 if (clone_template[c].pValue == NULL) { in meta_clone_template_setup()
1641 free(clone_template); in meta_clone_template_setup()
1647 (void) memcpy(clone_template[c].pValue, in meta_clone_template_setup()
1649 clone_template[c].ulValueLen); in meta_clone_template_setup()
1655 object->clone_template = clone_template; in meta_clone_template_setup()