Lines Matching refs:store
68 /* Permanent encoder method store, constructor and destructor */
81 /* We want encoder_store to be cleaned up before the provider store */
104 /* Temporary encoder method store, constructor and destructor */
114 static void dealloc_tmp_encoder_store(void *store)
116 if (store != NULL)
117 ossl_method_store_free(store);
120 /* Get the permanent encoder store */
127 static int reserve_encoder_store(void *store, void *data)
131 if (store == NULL
132 && (store = get_encoder_store(methdata->libctx)) == NULL)
135 return ossl_method_lock_store(store);
138 static int unreserve_encoder_store(void *store, void *data)
142 if (store == NULL
143 && (store = get_encoder_store(methdata->libctx)) == NULL)
146 return ossl_method_unlock_store(store);
149 /* Get encoder methods from a store, or put one in */
150 static void *get_encoder_from_store(void *store, const OSSL_PROVIDER **prov,
176 if (store == NULL
177 && (store = get_encoder_store(methdata->libctx)) == NULL)
180 if (!ossl_method_store_fetch(store, id, methdata->propquery, prov, &method))
185 static int put_encoder_in_store(void *store, void *method,
211 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL)
214 return ossl_method_store_add(store, prov, id, propdef, method,
375 OSSL_METHOD_STORE *store = get_encoder_store(methdata->libctx);
381 if (store == NULL || namemap == NULL) {
406 || !ossl_method_store_cache_get(store, NULL, id, propq, &method)) {
433 ossl_method_store_cache_set(store, prov, id, propq, method,
487 OSSL_METHOD_STORE *store = get_encoder_store(libctx);
489 if (store != NULL)
490 return ossl_method_store_cache_flush_all(store);
497 OSSL_METHOD_STORE *store = get_encoder_store(libctx);
499 if (store != NULL)
500 return ossl_method_store_remove_all_provided(store, prov);