/freebsd/contrib/ldns/ |
H A D | dane.c | 665 X509_STORE_CTX *store_ctx = NULL; in ldns_dane_verify_rr() local 720 else if (!(store_ctx = X509_STORE_CTX_new())) in ldns_dane_verify_rr() 723 else if (!X509_STORE_CTX_init(store_ctx, pkix_validation_store, cert, extra_certs)) in ldns_dane_verify_rr() 729 X509_STORE_CTX_set_default(store_ctx, in ldns_dane_verify_rr() 731 X509_VERIFY_PARAM_set1(X509_STORE_CTX_get0_param(store_ctx), in ldns_dane_verify_rr() 733 X509_STORE_CTX_set0_dane(store_ctx, SSL_get0_dane(ssl)); in ldns_dane_verify_rr() 735 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in ldns_dane_verify_rr() 737 ret = X509_verify_cert(store_ctx); in ldns_dane_verify_rr() 739 if (X509_STORE_CTX_get_error(store_ctx) == X509_V_ERR_DANE_NO_MATCH) in ldns_dane_verify_rr() 744 X509_STORE_CTX_cleanup(store_ctx); in ldns_dane_verify_rr() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | danetest.c | 57 X509_STORE_CTX *store_ctx = NULL; in verify_chain() local 63 if (!TEST_ptr(store_ctx = X509_STORE_CTX_new()) in verify_chain() 66 || !TEST_true(X509_STORE_CTX_init(store_ctx, store, NULL, chain)) in verify_chain() 67 || !TEST_true(X509_STORE_CTX_set_ex_data(store_ctx, store_ctx_idx, in verify_chain() 71 X509_STORE_CTX_set_default(store_ctx, SSL_is_server(ssl) in verify_chain() 73 X509_VERIFY_PARAM_set1(X509_STORE_CTX_get0_param(store_ctx), in verify_chain() 75 store_ctx_dane_init(store_ctx, ssl); in verify_chain() 78 X509_STORE_CTX_set_verify_cb(store_ctx, SSL_get_verify_callback(ssl)); in verify_chain() 81 if (!TEST_int_ge(ret = X509_STORE_CTX_verify(store_ctx), 0)) in verify_chain() 84 SSL_set_verify_result(ssl, X509_STORE_CTX_get_error(store_ctx)); in verify_chain() [all …]
|
H A D | ossl_store_test.c | 159 OSSL_STORE_CTX *store_ctx = NULL; in test_store_attach_unregistered_scheme() local 169 && TEST_ptr(store_ctx = OSSL_STORE_attach(bio, "file", libctx, NULL, in test_store_attach_unregistered_scheme() 176 OSSL_STORE_close(store_ctx); in test_store_attach_unregistered_scheme()
|
/freebsd/crypto/openssl/apps/ |
H A D | storeutl.c | 355 OSSL_STORE_CTX *store_ctx = NULL; in process() local 358 if ((store_ctx = OSSL_STORE_open_ex(uri, libctx, app_get0_propq(), uimeth, uidata, in process() 367 if (!OSSL_STORE_expect(store_ctx, expected)) { in process() 374 if (!OSSL_STORE_supports_search(store_ctx, criterion)) { in process() 381 if (!OSSL_STORE_find(store_ctx, search)) { in process() 391 OSSL_STORE_INFO *info = OSSL_STORE_load(store_ctx); in process() 397 if (OSSL_STORE_error(store_ctx)) { in process() 402 if (OSSL_STORE_eof(store_ctx)) in process() 408 if (OSSL_STORE_eof(store_ctx)) in process() 492 if (!OSSL_STORE_close(store_ctx)) { in process()
|
H A D | engine.c | 447 struct util_store_cap_data store_ctx; in engine_main() local 449 store_ctx.engine = e; in engine_main() 450 store_ctx.cap_buf = &cap_buf; in engine_main() 451 store_ctx.cap_size = &cap_size; in engine_main() 452 store_ctx.ok = 1; in engine_main() 454 OSSL_STORE_do_all_loaders(util_store_cap, &store_ctx); in engine_main() 455 if (!store_ctx.ok) in engine_main()
|
H A D | pkcs12.c | 1007 X509_STORE_CTX *store_ctx = NULL; in get_cert_chain() local 1011 store_ctx = X509_STORE_CTX_new_ex(app_get0_libctx(), app_get0_propq()); in get_cert_chain() 1012 if (store_ctx == NULL) { in get_cert_chain() 1016 if (!X509_STORE_CTX_init(store_ctx, store, cert, untrusted_certs)) { in get_cert_chain() 1022 if (X509_verify_cert(store_ctx) > 0) in get_cert_chain() 1023 chn = X509_STORE_CTX_get1_chain(store_ctx); in get_cert_chain() 1024 else if ((i = X509_STORE_CTX_get_error(store_ctx)) == 0) in get_cert_chain() 1028 X509_STORE_CTX_free(store_ctx); in get_cert_chain()
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | by_file.c | 128 i = X509_STORE_add_cert(ctx->store_ctx, x); in X509_load_cert_file_ex() 141 i = X509_STORE_add_cert(ctx->store_ctx, x); in X509_load_cert_file_ex() 186 i = X509_STORE_add_crl(ctx->store_ctx, x); in X509_load_crl_file() 200 i = X509_STORE_add_crl(ctx->store_ctx, x); in X509_load_crl_file() 240 if (!X509_STORE_add_cert(ctx->store_ctx, itmp->x509)) in X509_load_cert_crl_file_ex() 245 if (!X509_STORE_add_crl(ctx->store_ctx, itmp->crl)) in X509_load_cert_crl_file_ex()
|
H A D | by_dir.c | 351 if (!X509_STORE_lock(xl->store_ctx)) in get_cert_by_subject_ex() 353 j = sk_X509_OBJECT_find(xl->store_ctx->objs, &stmp); in get_cert_by_subject_ex() 354 tmp = sk_X509_OBJECT_value(xl->store_ctx->objs, j); in get_cert_by_subject_ex() 355 X509_STORE_unlock(xl->store_ctx); in get_cert_by_subject_ex()
|
H A D | x509_local.h | 106 X509_STORE *store_ctx; /* who owns us */ member
|
H A D | x509_lu.c | 154 return ctx->store_ctx; in X509_LOOKUP_get_store() 284 lu->store_ctx = v; in X509_STORE_add_lookup()
|
/freebsd/crypto/heimdal/lib/hx509/ |
H A D | ks_file.c | 526 struct store_ctx { struct 534 struct store_ctx *sc = ctx; in store_func() argument 572 struct store_ctx sc; in file_store()
|