/openssl/crypto/property/ |
H A D | property.c | 232 if (store != NULL) in alg_cleanup() 259 if (store != NULL) { in ossl_method_store_free() 260 if (store->algs != NULL) in ossl_method_store_free() 261 ossl_sa_ALGORITHM_doall_arg(store->algs, &alg_cleanup, store); in ossl_method_store_free() 265 OPENSSL_free(store); in ossl_method_store_free() 271 return store != NULL ? CRYPTO_THREAD_write_lock(store->biglock) : 0; in ossl_method_lock_store() 276 return store != NULL ? CRYPTO_THREAD_unlock(store->biglock) : 0; in ossl_method_unlock_store() 409 OSSL_METHOD_STORE *store; member 451 data.store = store; in ossl_method_store_remove_all_provided() 489 if (store != NULL) in ossl_method_store_do_all() [all …]
|
/openssl/crypto/ |
H A D | provider_core.c | 310 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() 380 } else if (store->numprovinfo == store->provinfosz) { in ossl_provider_info_add_to_store() 393 store->provinfo[store->numprovinfo] = *entry; in ossl_provider_info_add_to_store() 584 struct provider_store_st *store = prov->store; in create_provider_children() local 629 prov->store = store; in ossl_provider_add_to_store() 1101 store = prov->store; in provider_activate() 1313 prov->store = store; in provider_activate_fallbacks() [all …]
|
H A D | core_fetch.c | 20 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 D | property_test.c | 54 OSSL_METHOD_STORE *store = NULL; in test_property_string() local 104 ossl_method_store_free(store); in test_property_string() 148 OSSL_METHOD_STORE *store; in test_property_parse() local 167 OSSL_METHOD_STORE *store; in test_property_query_value_create() local 211 OSSL_METHOD_STORE *store; in test_property_parse_error() local 261 OSSL_METHOD_STORE *store; in test_property_merge() local 286 OSSL_METHOD_STORE *store; in test_property_defn_cache() local 324 OSSL_METHOD_STORE *store; in test_definition_compares() local 354 OSSL_METHOD_STORE *store; in test_register_deregister() local 426 OSSL_METHOD_STORE *store; in test_property() local [all …]
|
H A D | pkcs7_test.c | 57 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 D | x509_dup_cert_test.c | 20 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 D | verify_extra_test.c | 68 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()
|
H A D | cmp_protect_test.c | 335 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()
|
/openssl/crypto/store/ |
H A D | store_meth.c | 101 if (store != NULL) in dealloc_tmp_loader_store() 102 ossl_method_store_free(store); in dealloc_tmp_loader_store() 115 if (store == NULL in reserve_loader_store() 119 return ossl_method_lock_store(store); in reserve_loader_store() 126 if (store == NULL in unreserve_loader_store() 130 return ossl_method_unlock_store(store); in unreserve_loader_store() 147 if (store == NULL in get_loader_from_store() 169 if (store == NULL && (store = get_loader_store(methdata->libctx)) == NULL) in put_loader_in_store() 290 if (store == NULL || namemap == NULL) { in inner_loader_fetch() 382 if (store != NULL) in ossl_store_loader_store_cache_flush() [all …]
|
/openssl/include/internal/ |
H A D | property.h | 54 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 D | core.h | 34 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 D | evp_fetch.c | 57 if (store != NULL) in dealloc_tmp_evp_method_store() 58 ossl_method_store_free(store); in dealloc_tmp_evp_method_store() 70 if (store == NULL in reserve_evp_method_store() 74 return ossl_method_lock_store(store); in reserve_evp_method_store() 81 if (store == NULL in unreserve_evp_method_store() 148 if (store == NULL in get_evp_method_from_store() 186 if (store == NULL in put_evp_method_in_store() 401 if (store != NULL) in evp_method_store_cache_flush() 411 if (store != NULL) in evp_method_store_remove_all_provided() 424 if (plp != NULL && store != NULL) { in evp_set_parsed_default_properties() [all …]
|
/openssl/crypto/x509/ |
H A D | x509_lu.c | 320 X509_STORE *store = ctx->store; in ossl_x509_store_ctx_get_by_subject() local 325 if (store == NULL) in ossl_x509_store_ctx_get_by_subject() 334 X509_STORE_unlock(store); in ossl_x509_store_ctx_get_by_subject() 405 X509_STORE_unlock(store); in x509_store_add() 574 if (store == NULL) { in STACK_OF() 609 X509_STORE *store = ctx->store; in STACK_OF() local 611 if (store == NULL) in STACK_OF() 668 X509_STORE *store = ctx->store; in STACK_OF() local 753 X509_STORE *store = ctx->store; in X509_STORE_CTX_get1_issuer() local 782 if (store == NULL) in X509_STORE_CTX_get1_issuer() [all …]
|
H A D | x509_vfy.c | 2338 ctx->store = store; in X509_STORE_CTX_init() 2367 if (store != NULL && store->check_issued != NULL) in X509_STORE_CTX_init() 2372 if (store != NULL && store->get_issuer != NULL) in X509_STORE_CTX_init() 2377 if (store != NULL && store->verify_cb != NULL) in X509_STORE_CTX_init() 2382 if (store != NULL && store->verify != NULL) in X509_STORE_CTX_init() 2392 if (store != NULL && store->get_crl != NULL) in X509_STORE_CTX_init() 2397 if (store != NULL && store->check_crl != NULL) in X509_STORE_CTX_init() 2402 if (store != NULL && store->cert_crl != NULL) in X509_STORE_CTX_init() 2407 if (store != NULL && store->check_policy != NULL) in X509_STORE_CTX_init() 2412 if (store != NULL && store->lookup_certs != NULL) in X509_STORE_CTX_init() [all …]
|
/openssl/doc/internal/man3/ |
H A D | OSSL_METHOD_STORE.pod | 11 - 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 D | ossl_method_construct.pod | 13 /* 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 D | ossl_cmp_X509_STORE_add1_certs.pod | 13 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/encode_decode/ |
H A D | encoder_meth.c | 98 if (store != NULL) in dealloc_tmp_encoder_store() 99 ossl_method_store_free(store); in dealloc_tmp_encoder_store() 112 if (store == NULL in reserve_encoder_store() 116 return ossl_method_lock_store(store); in reserve_encoder_store() 123 if (store == NULL in unreserve_encoder_store() 127 return ossl_method_unlock_store(store); in unreserve_encoder_store() 157 if (store == NULL in get_encoder_from_store() 192 if (store == NULL && (store = get_encoder_store(methdata->libctx)) == NULL) in put_encoder_in_store() 362 if (store == NULL || namemap == NULL) { in inner_ossl_encoder_fetch() 446 if (store != NULL) in ossl_encoder_store_cache_flush() [all …]
|
H A D | decoder_meth.c | 98 if (store != NULL) in dealloc_tmp_decoder_store() 99 ossl_method_store_free(store); in dealloc_tmp_decoder_store() 112 if (store == NULL in reserve_decoder_store() 116 return ossl_method_lock_store(store); in reserve_decoder_store() 123 if (store == NULL in unreserve_decoder_store() 127 return ossl_method_unlock_store(store); in unreserve_decoder_store() 157 if (store == NULL in get_decoder_from_store() 192 if (store == NULL && (store = get_decoder_store(methdata->libctx)) == NULL) in put_decoder_in_store() 352 if (store == NULL || namemap == NULL) { in inner_ossl_decoder_fetch() 437 if (store != NULL) in ossl_decoder_store_cache_flush() [all …]
|
/openssl/crypto/ct/ |
H A D | ct_log.c | 138 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/doc/man3/ |
H A D | SSL_CTX_set1_verify_cert_store.pod | 11 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 D | SSL_CTX_set_cert_store.pod | 11 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
|
H A D | CMS_verify.pod | 12 int CMS_verify(CMS_ContentInfo *cms, STACK_OF(X509) *certs, X509_STORE *store, 15 STACK_OF(X509) *scerts, X509_STORE *store, 28 I<store> is a trusted certificate store used for chain verification. 63 the supplied trusted certificate store. Any internal certificates in the message 64 are used as untrusted CAs. If CRL checking is enabled in I<store> any internal 65 CRLs are used in addition to attempting to look them up in I<store>. If any 80 If B<CMS_NOCRL> is set and CRL checking is enabled in I<store> then any 138 The trusted certificate store is not searched for the signing certificate,
|
H A D | CMS_verify_receipt.pod | 12 STACK_OF(X509) *certs, X509_STORE *store, 20 signing certificate. B<store> is a trusted certificate store (used for chain
|
/openssl/apps/ |
H A D | verify.c | 85 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()
|