find_attribute
find_attribute(CK_ATTRIBUTE_TYPE attrtype, generic_attr_t *attributes,
find_attribute(new_attr->type, attributes, num_attributes, &attr);