Lines Matching defs:rv

43 	CK_RV rv;
54 rv = handle2session(hSession, &session_p);
55 if (rv != CKR_OK)
56 return (rv);
60 rv = CKR_ARGUMENTS_BAD;
65 rv = soft_add_object(pTemplate, ulCount, phObject, session_p);
73 return (rv);
82 CK_RV rv;
95 rv = handle2session(hSession, &session_p);
96 if (rv != CKR_OK)
97 return (rv);
102 rv = CKR_ARGUMENTS_BAD;
107 HANDLE2OBJECT(hObject, old_object, rv);
108 if (rv != CKR_OK) {
120 rv = soft_copy_object(old_object, &new_object, SOFT_COPY_OBJECT,
123 if ((rv != CKR_OK) || (new_object == NULL)) {
135 rv = soft_set_attribute(new_object, &pTemplate[i], B_TRUE);
136 if (rv != CKR_OK) {
141 rv = soft_pin_expired_check(new_object);
142 if (rv != CKR_OK) {
149 rv = soft_object_write_access_check(session_p, new_object);
150 if (rv != CKR_OK) {
163 rv = soft_put_object_to_keystore(new_object);
164 if (rv != CKR_OK) {
194 return (rv);
204 return (rv);
211 CK_RV rv;
234 HANDLE2OBJECT_DESTROY(hObject, object_p, rv);
235 if (rv != CKR_OK) {
236 return (rv);
248 rv = soft_pin_expired_check(object_p);
249 if (rv != CKR_OK) {
250 return (rv);
254 rv = handle2session(hSession, &session_p);
255 if (rv != CKR_OK) {
256 return (rv);
259 rv = soft_object_write_access_check(session_p, object_p);
260 if (rv != CKR_OK) {
262 return (rv);
293 rv = handle2session(creating_session, &session_p);
294 if (rv != CKR_OK) {
295 return (rv);
324 return (rv);
333 CK_RV rv = CKR_OK, rv1 = CKR_OK;
346 rv = handle2session(hSession, &session_p);
347 if (rv != CKR_OK)
348 return (rv);
360 HANDLE2OBJECT(hObject, object_p, rv);
361 if (rv != CKR_OK) {
367 return (rv);
372 rv = soft_keystore_load_latest_object(object_p);
373 if (rv != CKR_OK) {
376 return (rv);
388 rv = soft_get_attribute(object_p, &pTemplate[i]);
389 if (rv != CKR_OK)
391 rv1 = rv;
404 rv = rv1;
405 return (rv);
413 CK_RV rv = CKR_OK;
427 rv = handle2session(hSession, &session_p);
428 if (rv != CKR_OK)
429 return (rv);
441 HANDLE2OBJECT(hObject, object_p, rv);
442 if (rv != CKR_OK) {
448 return (rv);
452 rv = CKR_ATTRIBUTE_READ_ONLY;
461 rv = soft_keystore_load_latest_object(object_p);
462 if (rv != CKR_OK) {
477 rv = soft_copy_object(object_p, &new_object, SOFT_SET_ATTR_VALUE, NULL);
479 if ((rv != CKR_OK) || (new_object == NULL)) {
495 rv = soft_object_write_access_check(session_p, new_object);
496 if (rv != CKR_OK) {
502 rv = soft_set_attribute(new_object, &pTemplate[i], B_FALSE);
504 if (rv != CKR_OK) {
524 rv = soft_modify_object_to_keystore(object_p);
536 return (rv);
546 return (rv);
565 CK_RV rv;
576 rv = handle2session(sh, &session_p);
577 if (rv != CKR_OK)
578 return (rv);
606 rv = soft_find_objects_init(session_p, pTemplate, ulCount);
608 if (rv != CKR_OK) {
617 return (rv);
627 CK_RV rv = CKR_OK;
637 rv = handle2session(sh, &session_p);
638 if (rv != CKR_OK)
639 return (rv);
673 return (rv);
680 CK_RV rv;
690 rv = handle2session(sh, &session_p);
691 if (rv != CKR_OK)
692 return (rv);
707 return (rv);