91 unsigned int compute_components : 1;
110 static int mem_init(
STORE *s);
111 static void mem_clean(
STORE *s);
134 static int mem_ctrl(
STORE *s,
int cmd,
long l,
void *
p,
void (*
f)(
void));
138 "OpenSSL memory store interface",
159 return &store_memory;
162 static int mem_init(
STORE *s)
167 static void mem_clean(
STORE *s)
181 void *context = mem_list_start(s, type, attributes, parameters);
187 if (mem_list_end(s, context))
226 void *attribute_context = NULL;
234 memset(context, 0,
sizeof(
struct mem_ctx_st));
237 if (!attribute_context)
245 if (context->search_attributes == NULL)
247 context->search_attributes =
249 if (!context->search_attributes)
261 context->search_index = -1;
266 mem_list_end(s, context);
290 if (context->search_index == -1)
303 context->search_index = srch;
308 if (context->search_index < 0)
313 context->search_index);
314 for(srch = context->search_index;
323 context->search_index = srch;
328 static int mem_list_end(
STORE *s,
void *handle)
337 if (context && context->search_attributes)
342 static int mem_list_endp(
STORE *s,
void *handle)
347 || context->search_index
362 static int mem_ctrl(
STORE *s,
int cmd,
long l,
void *p,
void (*
f)(
void))