Home
last modified time | relevance | path

Searched refs:store (Results 1 – 25 of 190) sorted by relevance

12345678

/openssl/crypto/property/
H A Dproperty.c234 if (store != NULL) in alg_cleanup()
261 if (store != NULL) { in ossl_method_store_free()
262 if (store->algs != NULL) in ossl_method_store_free()
263 ossl_sa_ALGORITHM_doall_arg(store->algs, &alg_cleanup, store); in ossl_method_store_free()
267 OPENSSL_free(store); in ossl_method_store_free()
273 return store != NULL ? CRYPTO_THREAD_write_lock(store->biglock) : 0; in ossl_method_lock_store()
278 return store != NULL ? CRYPTO_THREAD_unlock(store->biglock) : 0; in ossl_method_unlock_store()
411 OSSL_METHOD_STORE *store; member
453 data.store = store; in ossl_method_store_remove_all_provided()
482 if (store != NULL) { in ossl_method_store_do_all()
[all …]
/openssl/crypto/
H A Dprovider_core.c310 struct provider_store_st *store = OPENSSL_zalloc(sizeof(*store)); in ossl_provider_store_new() local
325 return store; in ossl_provider_store_new()
335 return store; in get_provider_store()
373 store->provinfo = OPENSSL_zalloc(sizeof(*store->provinfo) in ossl_provider_info_add_to_store()
378 } else if (store->numprovinfo == store->provinfosz) { in ossl_provider_info_add_to_store()
389 store->provinfo[store->numprovinfo] = *entry; in ossl_provider_info_add_to_store()
608 struct provider_store_st *store = prov->store; in create_provider_children() local
653 prov->store = store; in ossl_provider_add_to_store()
1170 store = prov->store; in provider_activate()
1390 prov->store = store; in provider_activate_fallbacks()
[all …]
H A Dcore_fetch.c20 OSSL_METHOD_STORE *store; member
38 if (is_temporary_method_store(no_store, data) && data->store == NULL) { in ossl_method_construct_reserve_store()
45 if ((data->store = data->mcm->get_tmp_store(data->mcm_data)) == NULL) in ossl_method_construct_reserve_store()
49 return data->mcm->lock_store(data->store, data->mcm_data); in ossl_method_construct_reserve_store()
56 return data->mcm->unlock_store(data->store, data->mcm_data); in ossl_method_construct_unreserve_store()
123 data->mcm->put(data->store, method, provider, algo->algorithm_names, in ossl_method_construct_this()
149 cbdata.store = NULL; in ossl_method_construct()
162 if (cbdata.store != NULL) in ossl_method_construct()
163 method = mcm->get(cbdata.store, (const OSSL_PROVIDER **)provider_rw, in ossl_method_construct()
/openssl/test/
H A Dproperty_test.c54 OSSL_METHOD_STORE *store = NULL; in test_property_string() local
104 ossl_method_store_free(store); in test_property_string()
152 OSSL_METHOD_STORE *store; in test_property_parse() local
171 OSSL_METHOD_STORE *store; in test_property_query_value_create() local
219 OSSL_METHOD_STORE *store; in test_property_parse_error() local
269 OSSL_METHOD_STORE *store; in test_property_merge() local
294 OSSL_METHOD_STORE *store; in test_property_defn_cache() local
355 OSSL_METHOD_STORE *store; in test_definition_compares() local
385 OSSL_METHOD_STORE *store; in test_register_deregister() local
457 OSSL_METHOD_STORE *store; in test_property() local
[all …]
H A Dx509_load_cert_file_test.c20 X509_STORE *store = NULL; in test_load_cert_file() local
25 if (!TEST_ptr(store = X509_STORE_new()) in test_load_cert_file()
26 || !TEST_ptr(lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file())) in test_load_cert_file()
28 || !TEST_ptr(certs = X509_STORE_get1_all_certs(store)) in test_load_cert_file()
30 || !TEST_ptr(objs = X509_STORE_get1_objects(store)) in test_load_cert_file()
48 X509_STORE_free(store); in test_load_cert_file()
H A Dpkcs7_test.c57 X509_STORE *store = NULL; in pkcs7_verify_test() local
80 && TEST_ptr(store = X509_STORE_new()) in pkcs7_verify_test()
81 && TEST_true(X509_STORE_add_cert(store, cert)) in pkcs7_verify_test()
84 && TEST_true(PKCS7_verify(p7, NULL, store, msg_bio, NULL, PKCS7_TEXT)) in pkcs7_verify_test()
87 X509_STORE_free(store); in pkcs7_verify_test()
H A Dx509_dup_cert_test.c20 X509_STORE *store = NULL; in test_509_dup_cert() local
24 if (TEST_ptr(store = X509_STORE_new()) in test_509_dup_cert()
25 && TEST_ptr(lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file())) in test_509_dup_cert()
30 X509_STORE_free(store); in test_509_dup_cert()
H A Dverify_extra_test.c68 X509_STORE *store = NULL; in test_alt_chains_cert_forgery() local
71 store = X509_STORE_new(); in test_alt_chains_cert_forgery()
72 if (store == NULL) in test_alt_chains_cert_forgery()
75 lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); in test_alt_chains_cert_forgery()
90 if (!X509_STORE_CTX_init(sctx, store, x, untrusted)) in test_alt_chains_cert_forgery()
103 X509_STORE_free(store); in test_alt_chains_cert_forgery()
/openssl/crypto/store/
H A Dstore_meth.c100 if (store != NULL) in dealloc_tmp_loader_store()
101 ossl_method_store_free(store); in dealloc_tmp_loader_store()
114 if (store == NULL in reserve_loader_store()
118 return ossl_method_lock_store(store); in reserve_loader_store()
125 if (store == NULL in unreserve_loader_store()
129 return ossl_method_unlock_store(store); in unreserve_loader_store()
146 if (store == NULL in get_loader_from_store()
168 if (store == NULL && (store = get_loader_store(methdata->libctx)) == NULL) in put_loader_in_store()
297 if (store == NULL || namemap == NULL) { in inner_loader_fetch()
389 if (store != NULL) in ossl_store_loader_store_cache_flush()
[all …]
/openssl/crypto/x509/
H A Dx509_lu.c325 X509_STORE *store = ctx->store; in ossl_x509_store_ctx_get_by_subject() local
330 if (store == NULL) in ossl_x509_store_ctx_get_by_subject()
351 X509_STORE_unlock(store); in ossl_x509_store_ctx_get_by_subject()
602 if (store == NULL) { in STACK_OF()
622 if (store == NULL) { in STACK_OF()
658 X509_STORE *store = ctx->store; in STACK_OF() local
660 if (store == NULL) in STACK_OF()
719 X509_STORE *store = ctx->store; in STACK_OF() local
805 X509_STORE *store = ctx->store; in X509_STORE_CTX_get1_issuer() local
834 if (store == NULL) in X509_STORE_CTX_get1_issuer()
[all …]
/openssl/include/internal/
H A Dproperty.h54 void ossl_method_store_free(OSSL_METHOD_STORE *store);
56 int ossl_method_lock_store(OSSL_METHOD_STORE *store);
57 int ossl_method_unlock_store(OSSL_METHOD_STORE *store);
59 int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov,
63 int ossl_method_store_remove(OSSL_METHOD_STORE *store, int nid,
65 void ossl_method_store_do_all(OSSL_METHOD_STORE *store,
68 int ossl_method_store_fetch(OSSL_METHOD_STORE *store,
71 int ossl_method_store_remove_all_provided(OSSL_METHOD_STORE *store,
79 int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
81 int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
[all …]
H A Dcore.h34 int (*lock_store)(void *store, void *data);
36 int (*unlock_store)(void *store, void *data);
38 void *(*get)(void *store, const OSSL_PROVIDER **prov, void *data);
40 int (*put)(void *store, void *method, const OSSL_PROVIDER *prov,
/openssl/crypto/evp/
H A Devp_fetch.c58 if (store != NULL) in dealloc_tmp_evp_method_store()
59 ossl_method_store_free(store); in dealloc_tmp_evp_method_store()
71 if (store == NULL in reserve_evp_method_store()
75 return ossl_method_lock_store(store); in reserve_evp_method_store()
82 if (store == NULL in unreserve_evp_method_store()
86 return ossl_method_unlock_store(store); in unreserve_evp_method_store()
149 if (store == NULL in get_evp_method_from_store()
187 if (store == NULL in put_evp_method_in_store()
415 if (store != NULL) in evp_method_store_cache_flush()
425 if (store != NULL) in evp_method_store_remove_all_provided()
[all …]
/openssl/crypto/encode_decode/
H A Ddecoder_meth.c96 if (store != NULL) in dealloc_tmp_decoder_store()
97 ossl_method_store_free(store); in dealloc_tmp_decoder_store()
110 if (store == NULL in reserve_decoder_store()
114 return ossl_method_lock_store(store); in reserve_decoder_store()
121 if (store == NULL in unreserve_decoder_store()
125 return ossl_method_unlock_store(store); in unreserve_decoder_store()
155 if (store == NULL in get_decoder_from_store()
190 if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL) in put_decoder_in_store()
350 if (store == NULL || namemap == NULL) { in inner_ossl_decoder_fetch()
435 if (store != NULL) in ossl_decoder_store_cache_flush()
[all …]
H A Dencoder_meth.c96 if (store != NULL) in dealloc_tmp_encoder_store()
97 ossl_method_store_free(store); in dealloc_tmp_encoder_store()
110 if (store == NULL in reserve_encoder_store()
114 return ossl_method_lock_store(store); in reserve_encoder_store()
121 if (store == NULL in unreserve_encoder_store()
125 return ossl_method_unlock_store(store); in unreserve_encoder_store()
155 if (store == NULL in get_encoder_from_store()
190 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store()
360 if (store == NULL || namemap == NULL) { in inner_ossl_encoder_fetch()
444 if (store != NULL) in ossl_encoder_store_cache_flush()
[all …]
/openssl/doc/internal/man3/
H A DOSSL_METHOD_STORE.pod11 - implementation method store and query
20 void ossl_method_store_free(OSSL_METHOD_STORE *store);
27 int ossl_method_store_remove(OSSL_METHOD_STORE *store,
29 int ossl_method_store_fetch(OSSL_METHOD_STORE *store,
32 int ossl_method_store_remove_all_provided(OSSL_METHOD_STORE *store,
41 void ossl_method_store_cache_flush_all(OSSL_METHOD_STORE *store);
64 store subsystem in the scope of the library context I<ctx>.
69 ossl_method_store_free() frees resources allocated to I<store>.
79 the I<store>.
82 I<store>.
[all …]
H A Dossl_method_construct.pod13 /* Get a temporary store */
15 /* Get an already existing method from a store */
16 void *(*get)(void *store, const OSSL_PROVIDER *prov, void *data);
17 /* Store a method in a store */
80 This store is used to temporarily store methods for easier lookup, for
86 Look up an already existing method from a store by name.
88 The store may be given with I<store>.
89 NULL is a valid value and means that a subsystem default store
106 in a store.
108 The store may be given with I<store>.
[all …]
H A Dossl_cmp_X509_STORE_add1_certs.pod13 int ossl_cmp_X509_STORE_add1_certs(X509_STORE *store, STACK_OF(X509) *certs,
15 STACK_OF(X509) *ossl_cmp_X509_STORE_get1_certs(X509_STORE *store);
20 the given stack to given store. The I<certs> parameter may be NULL.
23 given store.
/openssl/crypto/ct/
H A Dct_log.c131 void CTLOG_STORE_free(CTLOG_STORE *store) in CTLOG_STORE_free() argument
133 if (store != NULL) { in CTLOG_STORE_free()
134 OPENSSL_free(store->propq); in CTLOG_STORE_free()
135 sk_CTLOG_pop_free(store->logs, CTLOG_free); in CTLOG_STORE_free()
136 OPENSSL_free(store); in CTLOG_STORE_free()
158 store->libctx, store->propq); in ctlog_new_from_conf()
161 int CTLOG_STORE_load_default_file(CTLOG_STORE *store) in CTLOG_STORE_load_default_file() argument
168 return CTLOG_STORE_load_file(store, fpath); in CTLOG_STORE_load_default_file()
223 load_ctx->log_store = store; in CTLOG_STORE_load_file()
329 for (i = 0; i < sk_CTLOG_num(store->logs); ++i) { in CTLOG_STORE_get0_log_by_id()
[all …]
/openssl/fuzz/
H A Dx509.c40 X509_STORE *store = NULL; in FuzzerTestOneInput() local
80 store = X509_STORE_new(); in FuzzerTestOneInput()
81 X509_STORE_add_cert(store, x509_2); in FuzzerTestOneInput()
89 X509_STORE_set1_param(store, param); in FuzzerTestOneInput()
91 X509_STORE_set_verify_cb(store, cb); in FuzzerTestOneInput()
97 X509_STORE_CTX_init(ctx, store, x509_1, NULL); in FuzzerTestOneInput()
124 OCSP_basic_verify(bs, certs, store, OCSP_PARTIAL_CHAIN); in FuzzerTestOneInput()
136 X509_STORE_free(store); in FuzzerTestOneInput()
/openssl/doc/man3/
H A DSSL_CTX_set1_verify_cert_store.pod11 verification or chain store
34 set the certificate store used for certificate verification to B<st>.
37 set the certificate store used for certificate chain building to B<st>.
49 increment the reference count of the supplied store so it must
51 not increment reference counts and the supplied store B<MUST NOT> be freed
58 affected if the parent SSL_CTX store pointer is set to a new value.
60 The verification store is used to verify the certificate chain sent by the
61 peer: that is an SSL/TLS client will use the verification store to verify
65 The chain store is used to build the certificate chain.
79 If the chain or the verification store is not set then the store associated
H A DSSL_CTX_set_cert_store.pod11 void SSL_CTX_set_cert_store(SSL_CTX *ctx, X509_STORE *store);
12 void SSL_CTX_set1_cert_store(SSL_CTX *ctx, X509_STORE *store);
18 of B<ctx> to/with B<store>. If another X509_STORE object is currently
20 take ownership of the B<store>, i.e., the call C<X509_STORE_free(store)> is no
24 of B<ctx> to/with B<store>. The B<store>'s reference count is incremented.
37 Typically the trusted certificate store is handled indirectly via using
52 SSL_CTX_set_cert_store() does not increment the B<store>'s reference
/openssl/apps/
H A Dverify.c85 X509_STORE *store = NULL; in verify_main() local
209 if ((store = setup_verify(CAfile, noCAfile, CApath, noCApath, in verify_main()
212 X509_STORE_set_verify_cb(store, cb); in verify_main()
215 X509_STORE_set1_param(store, vpm); in verify_main()
220 store_setup_crl_download(store); in verify_main()
224 if (check(store, NULL, untrusted, trusted, crls, show_chain, in verify_main()
229 if (check(store, argv[i], untrusted, trusted, crls, show_chain, in verify_main()
236 X509_STORE_free(store); in verify_main()
/openssl/crypto/ts/
H A Dts_verify_ctx.c67 ctx->store = s; in TS_VERIFY_CTX_set_store()
68 return ctx->store; in TS_VERIFY_CTX_set_store()
74 X509_STORE_free(ctx->store); in TS_VERIFY_CTX_set0_store()
75 ctx->store = s; in TS_VERIFY_CTX_set0_store()
120 X509_STORE_free(ctx->store); in TS_VERIFY_CTX_cleanup()
/openssl/doc/man7/
H A DOSSL_STORE-winstore.pod10 C<ROOT> certificate store through URIs, using the URI scheme
28 available certificates in the store.
32 =head2 Windows certificate store features
35 Windows certificate store also has the ability to associate additional
36 constraining properties alongside a certificate in the store. This includes

Completed in 75 milliseconds

12345678