Lines Matching defs:obj

306 	OBJECT	** obj)
402 *obj = o;
515 object_flatten(OBJECT * obj,
525 if (! obj) {
528 count = template_get_count(obj->template);
529 tmpl_len = template_get_compressed_size(obj->template);
543 (void) memcpy(buf + offset, &obj->class, sizeof (CK_OBJECT_CLASS_32));
549 (void) memcpy(buf + offset, &obj->name, sizeof (CK_BYTE) * 8);
551 rc = template_flatten(obj->template, buf + offset);
564 object_free(OBJECT *obj)
566 (void) template_free(obj->template);
567 free(obj);
576 object_is_modifiable(OBJECT *obj)
582 found = template_attribute_find(obj->template, CKA_MODIFIABLE, &attr);
597 object_is_private(OBJECT *obj) {
602 found = template_attribute_find(obj->template, CKA_PRIVATE, &attr);
615 object_is_public(OBJECT *obj) {
618 rc = object_is_private(obj);
626 object_is_token_object(OBJECT *obj) {
631 found = template_attribute_find(obj->template,
640 object_is_session_object(OBJECT *obj) {
643 rc = object_is_token_object(obj);
652 object_get_size(OBJECT *obj) {
655 size = sizeof (OBJECT) + template_get_size(obj->template);
661 object_get_attribute_values(OBJECT * obj,
673 obj_tmpl = obj->template;
708 object_set_attribute_values(OBJECT * obj,
717 if (! obj || ! pTemplate) {
721 found = template_get_class(obj->template, &class, &subclass);
744 rc = template_merge(obj->template, &new_tmpl);
758 OBJECT * obj = NULL;
766 obj = (OBJECT *)malloc(sizeof (OBJECT));
767 if (! obj) {
773 (void) memset(obj, 0x0, sizeof (OBJECT));
775 (void) memcpy(&obj->class, data + offset, sizeof (CK_OBJECT_CLASS_32));
782 (void) memcpy(&obj->name, data + offset, 8);
789 obj->template = tmpl;
792 *new_obj = obj;
795 (void) memcpy(*new_obj, obj, sizeof (OBJECT));
797 free(obj);
802 if (obj)
803 (void) object_free(obj);
819 OBJECT ** obj) {
826 if (! obj) {
879 *obj = o;