Home
last modified time | relevance | path

Searched refs:csc (Results 1 – 4 of 4) sorted by relevance

/openssl/apps/
H A Dverify.c252 X509_STORE_CTX *csc; in check() local
272 csc = X509_STORE_CTX_new(); in check()
273 if (csc == NULL) { in check()
280 if (!X509_STORE_CTX_init(csc, ctx, x, uchain)) { in check()
281 X509_STORE_CTX_free(csc); in check()
288 X509_STORE_CTX_set0_trusted_stack(csc, tchain); in check()
290 X509_STORE_CTX_set0_crls(csc, crls); in check()
291 i = X509_verify_cert(csc); in check()
292 if (i > 0 && X509_STORE_CTX_get_error(csc) == X509_V_OK) { in check()
298 chain = X509_STORE_CTX_get1_chain(csc); in check()
[all …]
/openssl/crypto/cmp/
H A Dcmp_vfy.c110 X509_STORE_CTX *csc = NULL; in OSSL_CMP_validate_cert_path() local
124 || !X509_STORE_CTX_init(csc, trusted_store, in OSSL_CMP_validate_cert_path()
128 valid = X509_verify_cert(csc) > 0; in OSSL_CMP_validate_cert_path()
138 X509_STORE_CTX_free(csc); in OSSL_CMP_validate_cert_path()
145 X509_STORE_CTX *csc; in verify_cb_cert() local
150 if ((csc = X509_STORE_CTX_new()) != NULL in verify_cb_cert()
151 && X509_STORE_CTX_init(csc, ts, cert, NULL)) { in verify_cb_cert()
152 X509_STORE_CTX_set_error(csc, err); in verify_cb_cert()
153 X509_STORE_CTX_set_current_cert(csc, cert); in verify_cb_cert()
154 ok = (*verify_cb)(0, csc); in verify_cb_cert()
[all …]
H A Dcmp_genm.c229 X509_STORE_CTX *csc = NULL; in verify_ss_cert() local
237 if ((csc = X509_STORE_CTX_new_ex(libctx, propq)) == NULL in verify_ss_cert()
238 || !X509_STORE_CTX_init(csc, ts, target, untrusted)) in verify_ss_cert()
240 X509_STORE_CTX_set_verify_cb(csc, selfsigned_verify_cb); in verify_ss_cert()
241 ok = X509_verify_cert(csc) > 0; in verify_ss_cert()
244 X509_STORE_CTX_free(csc); in verify_ss_cert()
H A Dcmp_client.c597 X509_STORE_CTX *csc = X509_STORE_CTX_new_ex(ctx->libctx, ctx->propq); in OSSL_CMP_certConf_cb() local
600 if (csc == NULL) in OSSL_CMP_certConf_cb()
602 if (!X509_STORE_CTX_init(csc, out_trusted, cert, ctx->untrusted)) in OSSL_CMP_certConf_cb()
605 X509_VERIFY_PARAM_clear_flags(X509_STORE_CTX_get0_param(csc), in OSSL_CMP_certConf_cb()
610 if (X509_verify_cert(csc) <= 0) in OSSL_CMP_certConf_cb()
613 if (!ossl_x509_add_certs_new(&chain, X509_STORE_CTX_get0_chain(csc), in OSSL_CMP_certConf_cb()
620 X509_STORE_CTX_free(csc); in OSSL_CMP_certConf_cb()

Completed in 14 milliseconds