Lines Matching refs:rc

317 	CK_RV	   rc;
355 rc = object_create_skel(pTemplate, ulCount,
357 if (rc != CKR_OK) {
358 return (rc);
369 rc = template_attribute_find(o->template, CKA_SENSITIVE, &attr);
370 if (rc == FALSE) {
371 rc = CKR_FUNCTION_FAILED;
377 rc = build_attribute(CKA_ALWAYS_SENSITIVE, &flag,
379 if (rc != CKR_OK) {
383 rc = template_attribute_find(o->template, CKA_EXTRACTABLE,
385 if (rc == FALSE) {
386 rc = CKR_FUNCTION_FAILED;
393 rc = build_attribute(CKA_NEVER_EXTRACTABLE, &flag,
395 if (rc != CKR_OK) {
411 return (rc);
434 CK_RV rc;
445 rc = CKR_HOST_MEMORY;
455 rc = template_copy(tmpl, old_obj->template);
456 if (rc != CKR_OK) {
459 rc = template_add_attributes(new_tmpl, pTemplate, ulCount);
460 if (rc != CKR_OK) {
473 rc = CKR_TEMPLATE_INCONSISTENT;
484 rc = template_validate_attributes(new_tmpl, class, subclass,
486 if (rc != CKR_OK)
489 rc = template_merge(tmpl, &new_tmpl);
490 if (rc != CKR_OK) {
494 rc = template_check_required_attributes(tmpl, class,
496 if (rc != CKR_OK)
511 return (rc);
523 long rc;
551 rc = template_flatten(obj->template, buf + offset);
552 if (rc != CKR_OK) {
554 return (rc);
616 CK_BBOOL rc;
618 rc = object_is_private(obj);
620 if (rc)
641 CK_BBOOL rc;
643 rc = object_is_token_object(obj);
645 if (rc)
669 CK_RV rc;
671 rc = CKR_OK;
679 rc = CKR_ATTRIBUTE_SENSITIVE;
687 rc = CKR_ATTRIBUTE_TYPE_INVALID;
699 rc = CKR_BUFFER_TOO_SMALL;
704 return (rc);
715 CK_RV rc;
723 rc = CKR_FUNCTION_FAILED;
733 rc = template_add_attributes(new_tmpl, pTemplate, ulCount);
734 if (rc != CKR_OK) {
738 rc = template_validate_attributes(new_tmpl, class,
740 if (rc != CKR_OK) {
744 rc = template_merge(obj->template, &new_tmpl);
745 if (rc != CKR_OK) {
746 return (rc);
752 return (rc);
761 CK_RV rc;
768 rc = CKR_HOST_MEMORY;
785 rc = template_unflatten(&tmpl, data + offset, count);
786 if (rc != CKR_OK) {
807 return (rc);
823 CK_RV rc;
837 rc = CKR_HOST_MEMORY;
845 rc = template_add_default_attributes(tmpl, class, subclass, mode);
846 if (rc != CKR_OK)
849 rc = template_add_attributes(tmpl2, pTemplate, ulCount);
850 if (rc != CKR_OK)
862 rc = template_validate_attributes(tmpl2, class, subclass, mode);
863 if (rc != CKR_OK) {
867 rc = template_check_required_attributes(tmpl2, class, subclass, mode);
868 if (rc != CKR_OK) {
872 rc = template_merge(tmpl, &tmpl2);
873 if (rc != CKR_OK) {
889 return (rc);