Home
last modified time | relevance | path

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

1234567

/openssl-master/crypto/
A Dprovider_core.c304 struct provider_store_st *store = OPENSSL_zalloc(sizeof(*store)); in provider_store_new() local
319 return store; in provider_store_new()
337 return store; in get_provider_store()
375 store->provinfo = OPENSSL_zalloc(sizeof(*store->provinfo) in ossl_provider_info_add_to_store()
382 } else if (store->numprovinfo == store->provinfosz) { in ossl_provider_info_add_to_store()
395 store->provinfo[store->numprovinfo] = *entry; in ossl_provider_info_add_to_store()
579 struct provider_store_st *store = prov->store; in create_provider_children() local
621 prov->store = store; in ossl_provider_add_to_store()
1095 store = prov->store; in provider_activate()
1253 prov->store = store; in provider_activate_fallbacks()
[all …]
A Dcore_fetch.c20 OSSL_METHOD_STORE *store; member
96 if ((data->store = data->mcm->get_tmp_store(data->mcm_data)) == NULL) in ossl_method_construct_this()
99 data->mcm->put(data->store, method, provider, algo->algorithm_names, in ossl_method_construct_this()
118 cbdata.store = NULL; in ossl_method_construct()
129 if (cbdata.store != NULL) in ossl_method_construct()
130 method = mcm->get(cbdata.store, (const OSSL_PROVIDER **)provider_rw, in ossl_method_construct()
/openssl-master/crypto/property/
A Dproperty.c238 if (store != NULL) { in ossl_method_store_free()
242 OPENSSL_free(store); in ossl_method_store_free()
322 ossl_property_unlock(store); in ossl_method_store_add()
328 ossl_property_unlock(store); in ossl_method_store_add()
367 ossl_property_unlock(store); in ossl_method_store_remove()
403 if (store != NULL) in ossl_method_store_do_all()
523 store->nelem = 0; in ossl_method_store_flush_cache()
587 store->need_flush = 0; in ossl_method_cache_flush_some()
589 store->nelem = state.nelem; in ossl_method_cache_flush_some()
642 if (store->need_flush) in ossl_method_store_cache_set()
[all …]
/openssl-master/test/
A Dproperty_test.c53 OSSL_METHOD_STORE *store; in test_property_string() local
76 ossl_method_store_free(store); in test_property_string()
119 OSSL_METHOD_STORE *store; in test_property_parse() local
138 OSSL_METHOD_STORE *store; in test_property_query_value_create() local
182 OSSL_METHOD_STORE *store; in test_property_parse_error() local
232 OSSL_METHOD_STORE *store; in test_property_merge() local
257 OSSL_METHOD_STORE *store; in test_property_defn_cache() local
295 OSSL_METHOD_STORE *store; in test_definition_compares() local
325 OSSL_METHOD_STORE *store; in test_register_deregister() local
397 OSSL_METHOD_STORE *store; in test_property() local
[all …]
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()
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()
A Dverify_extra_test.c63 X509_STORE *store = NULL; in test_alt_chains_cert_forgery() local
66 store = X509_STORE_new(); in test_alt_chains_cert_forgery()
67 if (store == NULL) in test_alt_chains_cert_forgery()
70 lookup = X509_STORE_add_lookup(store, X509_LOOKUP_file()); in test_alt_chains_cert_forgery()
85 if (!X509_STORE_CTX_init(sctx, store, x, untrusted)) in test_alt_chains_cert_forgery()
98 X509_STORE_free(store); in test_alt_chains_cert_forgery()
A Dcmp_protect_test.c335 X509_STORE *store; in execute_cmp_build_cert_chain_test() local
348 if (TEST_ptr(store = X509_STORE_new()) in execute_cmp_build_cert_chain_test()
349 && TEST_true(X509_STORE_add_cert(store, root))) { in execute_cmp_build_cert_chain_test()
350 X509_VERIFY_PARAM_set_flags(X509_STORE_get0_param(store), in execute_cmp_build_cert_chain_test()
352 chain = X509_build_chain(fixture->cert, fixture->certs, store, in execute_cmp_build_cert_chain_test()
361 X509_STORE_free(store); in execute_cmp_build_cert_chain_test()
464 X509_STORE *store = X509_STORE_new(); in execute_X509_STORE_test() local
468 if (!TEST_true(ossl_cmp_X509_STORE_add1_certs(store, in execute_X509_STORE_test()
472 sk = X509_STORE_get1_all_certs(store); in execute_X509_STORE_test()
477 X509_STORE_free(store); in execute_X509_STORE_test()
A Dcrltest.c236 X509_STORE *store = X509_STORE_new(); in verify() local
242 || !TEST_ptr(store) in verify()
250 || !TEST_true(X509_STORE_CTX_init(ctx, store, leaf, NULL))) in verify()
271 X509_STORE_free(store); in verify()
/openssl-master/crypto/x509/
A Dx509_lu.c313 X509_STORE *store = vs->store; in X509_STORE_CTX_get_by_subject() local
318 if (store == NULL) in X509_STORE_CTX_get_by_subject()
324 X509_STORE_lock(store); in X509_STORE_CTX_get_by_subject()
374 X509_STORE_lock(store); in x509_store_add()
550 if (store == NULL) { in STACK_OF()
581 X509_STORE *store = ctx->store; in STACK_OF() local
583 if (store == NULL) in STACK_OF()
633 X509_STORE *store = ctx->store; in STACK_OF() local
713 X509_STORE *store = ctx->store; in X509_STORE_CTX_get1_issuer() local
742 if (store == NULL) in X509_STORE_CTX_get1_issuer()
[all …]
A Dx509_vfy.c2325 ctx->store = store; in X509_STORE_CTX_init()
2354 if (store != NULL && store->check_issued != NULL) in X509_STORE_CTX_init()
2359 if (store != NULL && store->get_issuer != NULL) in X509_STORE_CTX_init()
2364 if (store != NULL && store->verify_cb != NULL) in X509_STORE_CTX_init()
2369 if (store != NULL && store->verify != NULL) in X509_STORE_CTX_init()
2379 if (store != NULL && store->get_crl != NULL) in X509_STORE_CTX_init()
2384 if (store != NULL && store->check_crl != NULL) in X509_STORE_CTX_init()
2389 if (store != NULL && store->cert_crl != NULL) in X509_STORE_CTX_init()
2394 if (store != NULL && store->check_policy != NULL) in X509_STORE_CTX_init()
2399 if (store != NULL && store->lookup_certs != NULL) in X509_STORE_CTX_init()
[all …]
/openssl-master/doc/internal/man3/
A DOSSL_METHOD_STORE.pod10 - implementation method store and query
19 void ossl_method_store_free(OSSL_METHOD_STORE *store);
26 int ossl_method_store_remove(OSSL_METHOD_STORE *store,
28 int ossl_method_store_fetch(OSSL_METHOD_STORE *store,
37 void ossl_method_store_flush_cache(OSSL_METHOD_STORE *store, int all);
60 store subsystem in the scope of the library context I<ctx>.
65 ossl_method_store_free() frees resources allocated to I<store>.
75 the I<store>.
78 I<store>.
87 I<store>.
[all …]
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 …]
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-master/crypto/ct/
A Dct_log.c138 void CTLOG_STORE_free(CTLOG_STORE *store) in CTLOG_STORE_free() argument
140 if (store != NULL) { in CTLOG_STORE_free()
141 OPENSSL_free(store->propq); in CTLOG_STORE_free()
142 sk_CTLOG_pop_free(store->logs, CTLOG_free); in CTLOG_STORE_free()
143 OPENSSL_free(store); in CTLOG_STORE_free()
165 store->libctx, store->propq); in ctlog_new_from_conf()
168 int CTLOG_STORE_load_default_file(CTLOG_STORE *store) in CTLOG_STORE_load_default_file() argument
175 return CTLOG_STORE_load_file(store, fpath); in CTLOG_STORE_load_default_file()
233 load_ctx->log_store = store; in CTLOG_STORE_load_file()
345 for (i = 0; i < sk_CTLOG_num(store->logs); ++i) { in CTLOG_STORE_get0_log_by_id()
[all …]
/openssl-master/include/internal/
A Dproperty.h54 void ossl_method_store_free(OSSL_METHOD_STORE *store);
55 int ossl_method_store_add(OSSL_METHOD_STORE *store, const OSSL_PROVIDER *prov,
59 int ossl_method_store_remove(OSSL_METHOD_STORE *store, int nid,
61 void ossl_method_store_do_all(OSSL_METHOD_STORE *store,
64 int ossl_method_store_fetch(OSSL_METHOD_STORE *store,
73 int ossl_method_store_cache_get(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
75 int ossl_method_store_cache_set(OSSL_METHOD_STORE *store, OSSL_PROVIDER *prov,
80 __owur int ossl_method_store_flush_cache(OSSL_METHOD_STORE *store, int all);
/openssl-master/crypto/evp/
A Devp_fetch.c74 static void dealloc_tmp_evp_method_store(void *store) in dealloc_tmp_evp_method_store() argument
76 if (store != NULL) in dealloc_tmp_evp_method_store()
77 ossl_method_store_free(store); in dealloc_tmp_evp_method_store()
146 if (store == NULL in get_evp_method_from_store()
156 static int put_evp_method_in_store(void *store, void *method, in put_evp_method_in_store() argument
184 if (store == NULL in put_evp_method_in_store()
254 if (store == NULL || namemap == NULL) { in inner_evp_generic_fetch()
436 if (store != NULL) in evp_method_store_flush()
437 return ossl_method_store_flush_cache(store, 1); in evp_method_store_flush()
449 if (plp != NULL && store != NULL) { in evp_set_parsed_default_properties()
[all …]
/openssl-master/crypto/store/
A Dstore_meth.c117 static void dealloc_tmp_loader_store(void *store) in dealloc_tmp_loader_store() argument
119 if (store != NULL) in dealloc_tmp_loader_store()
120 ossl_method_store_free(store); in dealloc_tmp_loader_store()
131 static void *get_loader_from_store(void *store, const OSSL_PROVIDER **prov, in get_loader_from_store() argument
144 if (store == NULL in get_loader_from_store()
145 && (store = get_loader_store(methdata->libctx)) == NULL) in get_loader_from_store()
153 static int put_loader_in_store(void *store, void *method, in put_loader_in_store() argument
166 if (store == NULL && (store = get_loader_store(methdata->libctx)) == NULL) in put_loader_in_store()
169 return ossl_method_store_add(store, prov, id, propdef, method, in put_loader_in_store()
281 OSSL_METHOD_STORE *store = get_loader_store(methdata->libctx); in inner_loader_fetch() local
[all …]
/openssl-master/doc/man3/
A DSSL_CTX_set1_verify_cert_store.pod9 verification or chain store
28 set the certificate store used for certificate verification to B<st>.
31 set the certificate store used for certificate chain building to B<st>.
38 increment the reference count of the supplied store so it must
40 not increment reference counts and the supplied store B<MUST NOT> be freed
47 affected if the parent SSL_CTX store pointer is set to a new value.
49 The verification store is used to verify the certificate chain sent by the
50 peer: that is an SSL/TLS client will use the verification store to verify
54 The chain store is used to build the certificate chain.
68 If the chain or the verification store is not set then the store associated
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
22 of B<ctx> to/with B<store>. The B<store>'s reference count is incremented.
35 Typically the trusted certificate store is handled indirectly via using
50 SSL_CTX_set_cert_store() does not increment the B<store>'s reference
A DCMS_verify.pod11 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, X509_STORE *store,
20 the signing certificate(s). B<store> is a trusted certificate store used for
44 the supplied trusted certificate store. Any internal certificates in the message
45 are used as untrusted CAs. If CRL checking is enabled in B<store> any internal
46 CRLs are used in addition to attempting to look them up in B<store>. If any
61 If B<CMS_NOCRL> is set and CRL checking is enabled in B<store> then any
116 The trusted certificate store is not searched for the signing certificate,
A DCMS_verify_receipt.pod12 STACK_OF(X509) *certs, X509_STORE *store,
20 signing certificate. B<store> is a trusted certificate store (used for chain
/openssl-master/crypto/encode_decode/
A Ddecoder_meth.c114 static void dealloc_tmp_decoder_store(void *store) in dealloc_tmp_decoder_store() argument
116 if (store != NULL) in dealloc_tmp_decoder_store()
117 ossl_method_store_free(store); in dealloc_tmp_decoder_store()
128 static void *get_decoder_from_store(void *store, const OSSL_PROVIDER **prov, in get_decoder_from_store() argument
154 if (store == NULL in get_decoder_from_store()
155 && (store = get_decoder_store(methdata->libctx)) == NULL) in get_decoder_from_store()
163 static int put_decoder_in_store(void *store, void *method, in put_decoder_in_store() argument
189 if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL) in put_decoder_in_store()
192 return ossl_method_store_add(store, prov, id, propdef, method, in put_decoder_in_store()
340 OSSL_METHOD_STORE *store = get_decoder_store(methdata->libctx); in inner_ossl_decoder_fetch() local
[all …]
A Dencoder_meth.c114 static void dealloc_tmp_encoder_store(void *store) in dealloc_tmp_encoder_store() argument
116 if (store != NULL) in dealloc_tmp_encoder_store()
117 ossl_method_store_free(store); in dealloc_tmp_encoder_store()
128 static void *get_encoder_from_store(void *store, const OSSL_PROVIDER **prov, in get_encoder_from_store() argument
154 if (store == NULL in get_encoder_from_store()
155 && (store = get_encoder_store(methdata->libctx)) == NULL) in get_encoder_from_store()
163 static int put_encoder_in_store(void *store, void *method, in put_encoder_in_store() argument
189 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store()
192 return ossl_method_store_add(store, prov, id, propdef, method, in put_encoder_in_store()
350 OSSL_METHOD_STORE *store = get_encoder_store(methdata->libctx); in inner_ossl_encoder_fetch() local
[all …]
/openssl-master/apps/
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()

Completed in 118 milliseconds

1234567