Lines Matching defs:rc

307 	CK_RV rc = CKR_OK;
325 rc = CKR_USER_NOT_LOGGED_IN;
330 rc = CKR_SESSION_READ_ONLY;
337 rc = CKR_SESSION_READ_ONLY;
344 rc = CKR_USER_NOT_LOGGED_IN;
351 rc = CKR_USER_NOT_LOGGED_IN;
356 return (rc);
367 CK_RV rc;
373 rc = pthread_mutex_lock(&obj_list_mutex);
374 if (rc != CKR_OK)
377 rc = object_create(pTemplate, ulCount, &o);
378 if (rc != CKR_OK) {
381 rc = check_object_access(sess, o);
382 if (rc != CKR_OK)
401 rc = XProcLock(xproclock);
402 if (rc != CKR_OK) {
409 rc = CKR_HOST_MEMORY;
416 rc = CKR_HOST_MEMORY;
433 rc = save_token_object(sess->hContext, o);
434 if (rc != CKR_OK) {
453 rc = object_mgr_add_to_map(sess, o, handle);
454 if (rc != CKR_OK) {
479 rc = XProcLock(xproclock);
480 if (rc != CKR_OK) {
492 if ((rc != CKR_OK) && (o != NULL))
495 return (rc);
552 CK_RV rc;
558 rc = pthread_mutex_lock(&obj_list_mutex);
559 if (rc != CKR_OK)
562 rc = object_mgr_find_in_map1(sess->hContext, old_handle, &old_obj);
563 if (rc != CKR_OK) {
566 rc = object_copy(pTemplate, ulCount, old_obj, &new_obj);
567 if (rc != CKR_OK) {
571 rc = check_object_access(sess, new_obj);
572 if (rc != CKR_OK)
587 rc = XProcLock(xproclock);
588 if (rc != CKR_OK) {
595 rc = CKR_HOST_MEMORY;
602 rc = CKR_HOST_MEMORY;
616 rc = save_token_object(sess->hContext, new_obj);
617 if (rc != CKR_OK) {
637 rc = object_mgr_add_to_map(sess, new_obj, new_handle);
638 if (rc != CKR_OK) {
661 rc = XProcLock(xproclock);
662 if (rc != CKR_OK) {
674 if ((rc != CKR_OK) && (new_obj != NULL))
677 return (rc);
695 CK_RV rc;
705 rc = object_create_skel(pTemplate, ulCount,
707 if (rc != CKR_OK) {
708 return (rc);
757 CK_RV rc;
762 rc = pthread_mutex_lock(&obj_list_mutex);
763 if (rc != CKR_OK)
778 rc = XProcLock(xproclock);
779 if (rc != CKR_OK) {
786 rc = CKR_HOST_MEMORY;
793 rc = CKR_HOST_MEMORY;
807 rc = save_token_object(sess->hContext, obj);
808 if (rc != CKR_OK) {
828 rc = object_mgr_add_to_map(sess, obj, handle);
829 if (rc != CKR_OK) {
852 rc = XProcLock(xproclock);
853 if (rc != CKR_OK) {
865 return (rc);
875 CK_RV rc;
880 rc = pthread_mutex_lock(&obj_list_mutex);
881 if (rc != CKR_OK)
884 rc = object_mgr_find_in_map1(sess->hContext, handle, &obj);
885 if (rc != CKR_OK) {
889 rc = check_object_access(sess, obj);
890 if (rc != CKR_OK)
907 rc = CKR_OK;
921 rc = XProcLock(xproclock);
922 if (rc != CKR_OK) {
940 rc = CKR_OK;
945 rc = CKR_FUNCTION_FAILED;
949 return (rc);
956 CK_RV rc;
958 rc = pthread_mutex_lock(&obj_list_mutex);
959 if (rc != CKR_OK)
967 rc = object_mgr_find_in_map2(hContext, obj, &handle);
968 if (rc == CKR_OK) {
983 rc = object_mgr_find_in_map2(hContext, obj, &handle);
984 if (rc == CKR_OK) {
996 rc = XProcLock(xproclock);
997 if (rc == CKR_OK) {
1014 return (rc);
1230 CK_RV rc;
1277 rc = object_mgr_find_in_map2(sess->hContext, obj,
1279 if (rc != CKR_OK) {
1280 rc = object_mgr_add_to_map(sess, obj, &handle);
1281 if (rc != CKR_OK) {
1285 if (rc == CKR_OK) {
1349 CK_RV rc;
1354 rc = pthread_mutex_lock(&obj_list_mutex);
1355 if (rc != CKR_OK)
1358 rc = object_mgr_find_in_map1(sess->hContext, handle, &obj);
1359 if (rc != CKR_OK) {
1367 rc = CKR_USER_NOT_LOGGED_IN;
1372 rc = object_get_attribute_values(obj, pTemplate, ulCount);
1376 return (rc);
1386 CK_RV rc;
1388 rc = pthread_mutex_lock(&obj_list_mutex);
1389 if (rc != CKR_OK)
1392 rc = object_mgr_find_in_map1(hContext, handle, &obj);
1393 if (rc != CKR_OK) {
1394 rc = CKR_OBJECT_HANDLE_INVALID;
1402 return (rc);
1485 CK_RV rc;
1490 rc = pthread_mutex_lock(&obj_list_mutex);
1491 if (rc != CKR_OK)
1513 CK_RV rc;
1515 rc = object_mgr_find_in_map2(sess->hContext, obj,
1517 if (rc == CKR_OK) {
1546 CK_RV rc;
1548 rc = pthread_mutex_lock(&obj_list_mutex);
1549 if (rc != CKR_OK)
1555 CK_RV rc;
1559 rc = object_mgr_find_in_map2(hContext, obj, &handle);
1560 if (rc == CKR_OK) {
1575 CK_RV rc;
1579 rc = object_mgr_find_in_map2(hContext, obj, &handle);
1580 if (rc == CKR_OK)
1600 CK_RV rc;
1602 rc = pthread_mutex_lock(&obj_list_mutex);
1603 if (rc != CKR_OK)
1609 CK_RV rc;
1613 rc = object_mgr_find_in_map2(hContext, obj, &handle);
1614 if (rc == CKR_OK) {
1660 CK_RV rc;
1667 rc = object_restore(data, &obj, TRUE);
1669 rc = object_restore(data, &obj, FALSE);
1670 if (rc == CKR_OK) {
1689 rc = CKR_HOST_MEMORY;
1698 rc = CKR_HOST_MEMORY;
1708 return (rc);
1720 CK_RV rc;
1725 rc = pthread_mutex_lock(&obj_list_mutex);
1726 if (rc != CKR_OK)
1729 rc = object_mgr_find_in_map1(sess->hContext, handle, &obj);
1730 if (rc != CKR_OK) {
1743 rc = check_object_access(sess, obj);
1744 if (rc != CKR_OK)
1745 return (rc);
1747 rc = object_set_attribute_values(obj, pTemplate, ulCount);
1748 if (rc != CKR_OK) {
1749 return (rc);
1759 rc = save_token_object(sess->hContext, obj);
1760 if (rc != CKR_OK)
1761 return (rc);
1763 rc = XProcLock(xproclock);
1764 if (rc != CKR_OK) {
1765 return (rc);
1768 rc = object_mgr_search_shm_for_obj(
1773 if (rc != CKR_OK) {
1775 return (rc);
1780 rc = object_mgr_search_shm_for_obj(
1784 if (rc != CKR_OK) {
1786 return (rc);
1798 return (rc);
1835 CK_RV rc;
1840 rc = object_mgr_search_shm_for_obj(global_shm->priv_tok_objs,
1842 if (rc != CKR_OK) {
1867 rc = object_mgr_search_shm_for_obj(global_shm->publ_tok_objs,
1869 if (rc != CKR_OK) {
1903 CK_RV rc;
1909 rc = object_mgr_search_shm_for_obj(
1912 if (rc != CKR_OK) {
1917 rc = object_mgr_search_shm_for_obj(
1920 if (rc != CKR_OK) {
1929 rc = reload_token_object(hContext, obj);
1930 return (rc);
1979 CK_RV rc;
1999 rc = object_mgr_find_in_map2(hContext, obj, &handle);
2000 if (rc == CKR_OK) {
2063 rc = object_mgr_find_in_map2(hContext, obj, &handle);
2064 if (rc == CKR_OK) {
2090 CK_RV rc;
2107 rc = object_mgr_find_in_map2(hContext, obj, &handle);
2108 if (rc == CKR_OK) {
2171 rc = object_mgr_find_in_map2(hContext, obj, &handle);
2172 if (rc == CKR_OK) {