Lines Matching refs:store

11 #include "crypto/store.h"
71 /* Permanent loader method store, constructor and destructor */
84 /* We want loader_store to be cleaned up before the provider store */
107 /* Temporary loader method store, constructor and destructor */
117 static void dealloc_tmp_loader_store(void *store)
119 if (store != NULL)
120 ossl_method_store_free(store);
123 /* Get the permanent loader store */
130 static int reserve_loader_store(void *store, void *data)
134 if (store == NULL
135 && (store = get_loader_store(methdata->libctx)) == NULL)
138 return ossl_method_lock_store(store);
141 static int unreserve_loader_store(void *store, void *data)
145 if (store == NULL
146 && (store = get_loader_store(methdata->libctx)) == NULL)
149 return ossl_method_unlock_store(store);
152 /* Get loader methods from a store, or put one in */
153 static void *get_loader_from_store(void *store, const OSSL_PROVIDER **prov,
166 if (store == NULL
167 && (store = get_loader_store(methdata->libctx)) == NULL)
170 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method))
175 static int put_loader_in_store(void *store, void *method,
188 if (store == NULL && (store = get_loader_store(methdata->libctx)) == NULL)
191 return ossl_method_store_add(store, prov, id, propdef, method,
303 OSSL_METHOD_STORE *store = get_loader_store(methdata->libctx);
309 if (store == NULL || namemap == NULL) {
335 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) {
361 ossl_method_store_cache_set(store, prov, id, propq, method,
376 ? ( "No store loader found. For standard store loaders you need "
424 OSSL_METHOD_STORE *store = get_loader_store(libctx);
426 if (store != NULL)
427 return ossl_method_store_cache_flush_all(store);
434 OSSL_METHOD_STORE *store = get_loader_store(libctx);
436 if (store != NULL)
437 return ossl_method_store_remove_all_provided(store, prov);