Lines Matching defs:pTemplate
304 object_create(CK_ATTRIBUTE * pTemplate,
320 if (! pTemplate) {
325 attr = pTemplate;
355 rc = object_create_skel(pTemplate, ulCount,
424 object_copy(CK_ATTRIBUTE * pTemplate,
437 if (! old_obj || ! pTemplate || ! new_obj) {
459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount);
662 CK_ATTRIBUTE * pTemplate,
677 pTemplate[i].type);
680 pTemplate[i].ulValueLen = (CK_ULONG) - 1;
685 pTemplate[i].type, &attr);
688 pTemplate[i].ulValueLen = (CK_ULONG) - 1;
692 if (pTemplate[i].pValue == NULL) {
693 pTemplate[i].ulValueLen = attr->ulValueLen;
694 } else if (pTemplate[i].ulValueLen >= attr->ulValueLen) {
695 (void) memcpy(pTemplate[i].pValue, attr->pValue,
697 pTemplate[i].ulValueLen = attr->ulValueLen;
700 pTemplate[i].ulValueLen = (CK_ULONG) - 1;
709 CK_ATTRIBUTE * pTemplate,
717 if (! obj || ! pTemplate) {
733 rc = template_add_attributes(new_tmpl, pTemplate, ulCount);
814 object_create_skel(CK_ATTRIBUTE * pTemplate,
829 if (! pTemplate && (ulCount != 0)) {
849 rc = template_add_attributes(tmpl2, pTemplate, ulCount);