Lines Matching refs:rc

36 	enum pkcs11_rc rc = PKCS11_CKR_OK;  in add_attribute()  local
40 rc = serialize(bstart, &buf_len, &data32, sizeof(uint32_t)); in add_attribute()
41 if (rc) in add_attribute()
42 return rc; in add_attribute()
45 rc = serialize(bstart, &buf_len, &data32, sizeof(uint32_t)); in add_attribute()
46 if (rc) in add_attribute()
47 return rc; in add_attribute()
49 rc = serialize(bstart, &buf_len, data, size); in add_attribute()
50 if (rc) in add_attribute()
51 return rc; in add_attribute()
58 return rc; in add_attribute()
172 enum pkcs11_rc rc = PKCS11_CKR_OK; in get_attribute() local
176 rc = get_attribute_ptr(head, attribute, &attr_ptr, &size); in get_attribute()
177 if (rc) in get_attribute()
178 return rc; in get_attribute()
198 enum pkcs11_rc rc = PKCS11_CKR_OK; in set_attribute() local
200 rc = _remove_attribute(head, attribute, false); in set_attribute()
201 if (rc != PKCS11_CKR_OK && rc != PKCS11_RV_NOT_FOUND) in set_attribute()
202 return rc; in set_attribute()
213 enum pkcs11_rc rc = PKCS11_CKR_OK; in modify_attributes_list() local
223 rc = set_attribute(dst, cli_head.id, in modify_attributes_list()
226 if (rc) in modify_attributes_list()
227 return rc; in modify_attributes_list()
235 enum pkcs11_rc rc = PKCS11_CKR_OK; in get_bool() local
239 rc = get_attribute(head, attribute, &bbool, &size); in get_bool()
241 if (rc == PKCS11_RV_NOT_FOUND) in get_bool()
244 assert(rc == PKCS11_CKR_OK); in get_bool()
253 uint32_t rc = PKCS11_CKR_GENERAL_ERROR; in attributes_match_reference() local
267 rc = get_attribute_ptr(candidate, pkcs11_ref.id, &value, &size); in attributes_match_reference()
269 if (rc || !value || size != pkcs11_ref.size || in attributes_match_reference()
284 enum pkcs11_rc rc = PKCS11_CKR_OK; in attributes_match_add_reference() local
296 rc = get_attribute_ptr(*head, pkcs11_ref.id, &value, &size); in attributes_match_add_reference()
297 if (rc == PKCS11_RV_NOT_FOUND) { in attributes_match_add_reference()
298 rc = add_attribute(head, pkcs11_ref.id, in attributes_match_add_reference()
301 if (rc) in attributes_match_add_reference()
302 return rc; in attributes_match_add_reference()
304 if (rc || !value || size != pkcs11_ref.size || in attributes_match_add_reference()