Lines Matching defs:attributes
34 find_attribute(CK_ATTRIBUTE_TYPE attrtype, generic_attr_t *attributes,
40 * Returns an (statically allocated) set of object attributes, as determined by
41 * class and keytype of the supplied object. The attributes are only
46 slot_object_t *slot_object, generic_attr_t **attributes,
93 attributes, num_attributes);
101 * Returns an (statically allocated) set of object attributes, as determined by
103 * class/subclass of the object. The attributes are only initialized to
109 generic_attr_t **attributes, size_t *num_attributes)
149 attributes, num_attributes));
155 * Returns an (statically allocated) set of object attributes, as determined
156 * by the specified class and subtype. The attributes are initialized to default
161 generic_attr_t **attributes, size_t *num_attributes)
366 *attributes = master_template;
376 * Returns an (statically allocated) set of object attributes, as determined by
377 * the specified class and subtype. The attributes are initialized to default
382 generic_attr_t **attributes, size_t *num_attributes)
429 *attributes = new_attributes;
439 * Returns an (statically allocated) set of object attributes, as copied from an
440 * existing set of attributes. The new attributes inherit the values from
441 * the old attributes.
510 * Deallocates the storage used for a set of attributes. The attribute
514 dealloc_attributes(generic_attr_t *attributes, size_t num_attributes)
520 attr = attributes + i;
524 * attributes with isSensitive == True, but it's not much
525 * extra work to just do them all. [Most attributes are just
534 free(attributes);
546 generic_attr_t *attributes, size_t num_attributes)
556 find_attribute(new_attr->type, attributes, num_attributes, &attr);
617 find_attribute(CK_ATTRIBUTE_TYPE attrtype, generic_attr_t *attributes,
625 for (i = 0, attr = attributes; i < num_attributes; i++, attr++) {
643 get_template_ulong(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes,
650 if (attributes[i].type == type) {
651 CK_ULONG *value = attributes[i].pValue;
670 get_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes,
677 if (attributes[i].type == type) {
678 CK_BBOOL *value = attributes[i].pValue;
707 set_template_boolean(CK_ATTRIBUTE_TYPE type, CK_ATTRIBUTE *attributes,
713 if (attributes[i].type == type) {
715 attributes[i].pValue = value;
717 *((CK_BBOOL *)attributes[i].pValue) = *value;