Lines Matching refs:attribute
30 enum pkcs11_rc add_attribute(struct obj_attrs **head, uint32_t attribute, in add_attribute() argument
38 data32 = attribute; in add_attribute()
61 uint32_t attribute, bool empty) in _remove_attribute() argument
77 if (pkcs11_ref.id != attribute) in _remove_attribute()
93 DMSG("Attribute %s (%#x) not found", id2str_attr(attribute), attribute); in _remove_attribute()
98 uint32_t attribute) in remove_empty_attribute() argument
100 return _remove_attribute(head, attribute, true /* empty */); in remove_empty_attribute()
103 void get_attribute_ptrs(struct obj_attrs *head, uint32_t attribute, in get_attribute_ptrs() argument
121 if (pkcs11_ref.id != attribute) in get_attribute_ptrs()
152 enum pkcs11_rc get_attribute_ptr(struct obj_attrs *head, uint32_t attribute, in get_attribute_ptr() argument
157 get_attribute_ptrs(head, attribute, attr_ptr, attr_size, &count); in get_attribute_ptr()
168 enum pkcs11_rc get_attribute(struct obj_attrs *head, uint32_t attribute, in get_attribute() argument
175 rc = get_attribute_ptr(head, attribute, &attr_ptr, &size); in get_attribute()
194 enum pkcs11_rc set_attribute(struct obj_attrs **head, uint32_t attribute, in set_attribute() argument
199 rc = _remove_attribute(head, attribute, false); in set_attribute()
203 return add_attribute(head, attribute, data, size); in set_attribute()
232 bool get_bool(struct obj_attrs *head, uint32_t attribute) in get_bool() argument
238 rc = get_attribute(head, attribute, &bbool, &size); in get_bool()