Lines Matching refs:context

176 	void *context = mem_list_start(s, type, attributes, parameters);  in mem_get()  local
178 if (context) in mem_get()
180 STORE_OBJECT *object = mem_list_next(s, context); in mem_get()
182 if (mem_list_end(s, context)) in mem_get()
219 struct mem_ctx_st *context = in mem_list_start() local
224 if (!context) in mem_list_start()
229 memset(context, 0, sizeof(struct mem_ctx_st)); in mem_list_start()
240 if (context->search_attributes == NULL) in mem_list_start()
242 context->search_attributes = in mem_list_start()
244 if (!context->search_attributes) in mem_list_start()
251 sk_push(context->search_attributes,(char *)attrs); in mem_list_start()
256 context->search_index = -1; in mem_list_start()
257 context->index = -1; in mem_list_start()
258 return context; in mem_list_start()
261 mem_list_end(s, context); in mem_list_start()
267 struct mem_ctx_st *context = (struct mem_ctx_st *)handle; in mem_list_next() local
274 if (!context) in mem_list_next()
285 if (context->search_index == -1) in mem_list_next()
287 for (i = 0; i < sk_num(context->search_attributes); i++) in mem_list_next()
290 (STORE_ATTR_INFO *)sk_value(context->search_attributes, i); in mem_list_next()
295 context->search_index = srch; in mem_list_next()
300 if (context->search_index < 0) in mem_list_next()
304 (STORE_ATTR_INFO *)sk_value(context->search_attributes, in mem_list_next()
305 context->search_index); in mem_list_next()
306 for(srch = context->search_index; in mem_list_next()
315 context->search_index = srch; in mem_list_next()
323 struct mem_ctx_st *context = (struct mem_ctx_st *)handle; in mem_list_end() local
325 if (!context) in mem_list_end()
330 if (context && context->search_attributes) in mem_list_end()
331 sk_free(context->search_attributes); in mem_list_end()
332 if (context) OPENSSL_free(context); in mem_list_end()
337 struct mem_ctx_st *context = (struct mem_ctx_st *)handle; in mem_list_endp() local
339 if (!context in mem_list_endp()
340 || context->search_index == sk_num(context->search_attributes)) in mem_list_endp()