Lines Matching refs:set

115 __OID_is_member(gss_OID_set set, const gss_OID_desc * const element)  in __OID_is_member()  argument
120 for (i = 0; i < set->count; i++) in __OID_is_member()
121 if (__OID_equal(element, &set->elements[i])) in __OID_is_member()
131 gss_OID_set set; in __OID_copy_set() local
138 set = New(gss_OID_set_desc, 1); in __OID_copy_set()
139 if (set == NULL) in __OID_copy_set()
143 set->elements = New(gss_OID_desc, source->count); in __OID_copy_set()
144 if (set->elements == NULL) { in __OID_copy_set()
145 Free(set); in __OID_copy_set()
149 set->count = source->count; in __OID_copy_set()
153 if (__OID_copy_desc(&set->elements[i], &source->elements[i]) in __OID_copy_set()
160 Free(set->elements[i].elements); in __OID_copy_set()
161 Free(set->elements); in __OID_copy_set()
162 Free(set); in __OID_copy_set()
167 *dest = set; in __OID_copy_set()
179 gss_OID_set set; in __OID_copy_set_from_array() local
186 set = New(gss_OID_set_desc, 1); in __OID_copy_set_from_array()
187 if (set == NULL) in __OID_copy_set_from_array()
191 set->elements = New(gss_OID_desc, nel); in __OID_copy_set_from_array()
192 if (set->elements == NULL) { in __OID_copy_set_from_array()
193 Free(set); in __OID_copy_set_from_array()
197 set->count = nel; in __OID_copy_set_from_array()
200 for (i = 0; i < set->count; i++) in __OID_copy_set_from_array()
201 if (__OID_copy_desc(&set->elements[i], array[i]) in __OID_copy_set_from_array()
206 if (i != set->count) { in __OID_copy_set_from_array()
208 Free(set->elements[i].elements); in __OID_copy_set_from_array()
209 Free(set->elements); in __OID_copy_set_from_array()
210 Free(set); in __OID_copy_set_from_array()
215 *dest = set; in __OID_copy_set_from_array()
225 __OID_to_OID_set(gss_OID_set *set, const gss_OID_desc * const oid) in __OID_to_OID_set() argument
231 if (set == NULL) in __OID_to_OID_set()
246 *set = s; in __OID_to_OID_set()