Home | History | Annotate | Download | only in store

Lines Matching refs:store

1 /* crypto/store/str_mem.c -*- mode:C; c-file-style: "eay" -*- */
63 /* The memory store is currently highly experimental. It's meant to become
64 a base store used by other stores for internal caching (for full caching
110 static int mem_init(STORE *s);
111 static void mem_clean(STORE *s);
112 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
114 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
116 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
119 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
123 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
125 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
127 static STORE_OBJECT *mem_list_next(STORE *s, void *handle);
128 static int mem_list_end(STORE *s, void *handle);
129 static int mem_list_endp(STORE *s, void *handle);
130 static int mem_lock(STORE *s, OPENSSL_ITEM attributes[],
132 static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[],
134 static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void));
138 "OpenSSL memory store interface",
162 static int mem_init(STORE *s)
167 static void mem_clean(STORE *s)
172 static STORE_OBJECT *mem_generate(STORE *s, STORE_OBJECT_TYPES type,
178 static STORE_OBJECT *mem_get(STORE *s, STORE_OBJECT_TYPES type,
192 static int mem_store(STORE *s, STORE_OBJECT_TYPES type,
199 static int mem_modify(STORE *s, STORE_OBJECT_TYPES type,
207 static int mem_delete(STORE *s, STORE_OBJECT_TYPES type,
217 will then find the first matching element in the store, and then
218 walk all the way to the end of the store (since any combination
221 static void *mem_list_start(STORE *s, STORE_OBJECT_TYPES type,
269 static STORE_OBJECT *mem_list_next(STORE *s, void *handle)
274 struct mem_data_st *store =
284 if (!store)
299 srch = sk_MEM_OBJECT_DATA_find_ex(store->data, &key);
315 srch < sk_MEM_OBJECT_DATA_num(store->data)
317 sk_MEM_OBJECT_DATA_value(store->data, srch)->attr_info)
319 sk_MEM_OBJECT_DATA_value(store->data, srch)->attr_info));
325 return (sk_MEM_OBJECT_DATA_value(store->data, srch))->object;
328 static int mem_list_end(STORE *s, void *handle)
342 static int mem_list_endp(STORE *s, void *handle)
352 static int mem_lock(STORE *s, OPENSSL_ITEM attributes[],
357 static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[],
362 static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void))