Lines Matching defs:obj

41 	kms_object_t *obj;
43 obj = calloc(1, sizeof (kms_object_t));
44 if (obj == NULL)
47 (void) pthread_cond_init(&obj->obj_free_cond, NULL);
48 (void) pthread_mutex_init(&obj->object_mutex, NULL);
49 obj->magic_marker = KMSTOKEN_OBJECT_MAGIC;
51 return (obj);
115 kms_free_object(kms_object_t *obj)
117 (void) pthread_cond_destroy(&obj->obj_free_cond);
118 (void) pthread_mutex_destroy(&obj->object_mutex);
120 kms_cleanup_object(obj);
122 free(obj);
522 add_to_search_result(kms_object_t *obj, find_context_t *fcontext,
538 (fcontext->objs_found)[(fcontext->num_results)++] = obj;
547 kms_object_t *obj;
598 obj = pslot->sl_tobj_list;
599 while (obj) {
600 (void) pthread_mutex_lock(&obj->object_mutex);
603 if (kms_find_match_attrs(obj, pclasses,
606 obj, fcontext, &num_result_alloc);
611 rv = add_to_search_result(obj, fcontext,
615 (void) pthread_mutex_unlock(&obj->object_mutex);
620 obj = obj->next;
680 obj = session_p->object_list;
681 while (obj) {
682 (void) pthread_mutex_lock(&obj->object_mutex);
684 if (kms_find_match_attrs(obj, pclasses,
687 obj, fcontext, &num_result_alloc);
691 rv = add_to_search_result(obj, fcontext,
694 (void) pthread_mutex_unlock(&obj->object_mutex);
700 obj = obj->next;
769 kms_object_t *obj;
777 obj = fcontext->objs_found[i];
778 if (obj != NULL) {
779 (void) pthread_mutex_lock(&obj->object_mutex);
780 /* a sanity check to make sure the obj is still valid */
781 if (obj->magic_marker == KMSTOKEN_OBJECT_MAGIC) {
783 (CK_OBJECT_HANDLE)obj;
786 (void) pthread_mutex_unlock(&obj->object_mutex);
962 kms_get_object_size(kms_object_t *obj, CK_ULONG_PTR pulSize)
969 switch (obj->class) {
971 obj_size += OBJ_SEC_VALUE_LEN(obj);