Lines Matching refs:store

313     X509_STORE *store = vs->store;
318 if (store == NULL)
324 if (!X509_STORE_lock(store))
327 tmp = X509_OBJECT_retrieve_by_subject(store->objs, type, name);
328 X509_STORE_unlock(store);
331 for (i = 0; i < sk_X509_LOOKUP_num(store->get_cert_methods); i++) {
332 lu = sk_X509_LOOKUP_value(store->get_cert_methods, i);
353 static int x509_store_add(X509_STORE *store, void *x, int crl) {
376 if (!X509_STORE_lock(store)) {
382 if (X509_OBJECT_retrieve_match(store->objs, obj)) {
385 added = sk_X509_OBJECT_push(store->objs, obj);
388 X509_STORE_unlock(store);
551 STACK_OF(X509) *X509_STORE_get1_all_certs(X509_STORE *store)
557 if (store == NULL) {
563 if (!X509_STORE_lock(store))
566 objs = X509_STORE_get0_objects(store);
574 X509_STORE_unlock(store);
578 X509_STORE_unlock(store);
591 X509_STORE *store = ctx->store;
593 if (store == NULL)
596 if (!X509_STORE_lock(store))
599 idx = x509_object_idx_cnt(store->objs, X509_LU_X509, nm, &cnt);
607 X509_STORE_unlock(store);
616 if (!X509_STORE_lock(store))
618 idx = x509_object_idx_cnt(store->objs, X509_LU_X509, nm, &cnt);
620 X509_STORE_unlock(store);
627 obj = sk_X509_OBJECT_value(store->objs, idx);
630 X509_STORE_unlock(store);
635 X509_STORE_unlock(store);
646 X509_STORE *store = ctx->store;
651 || store == NULL
658 if (!X509_STORE_lock(store)) {
662 idx = x509_object_idx_cnt(store->objs, X509_LU_CRL, nm, &cnt);
664 X509_STORE_unlock(store);
670 obj = sk_X509_OBJECT_value(store->objs, idx);
673 X509_STORE_unlock(store);
678 X509_STORE_unlock(store);
684 X509_STORE_unlock(store);
717 * Try to get issuer cert from |ctx->store| matching the subject name of |x|.
729 X509_STORE *store = ctx->store;
758 if (store == NULL)
763 if (!X509_STORE_lock(store))
766 idx = x509_object_idx_cnt(store->objs, X509_LU_X509, xn, &nmatch);
770 pobj = sk_X509_OBJECT_value(store->objs, i);
796 X509_STORE_unlock(store);
974 return ctx->store;