Home
last modified time | relevance | path

Searched refs:cert_ctx (Results 1 – 3 of 3) sorted by relevance

/openssl/crypto/pkcs7/
H A Dpk7_smime.c224 X509_STORE_CTX *cert_ctx = NULL; in PKCS7_verify() local
274 cert_ctx = X509_STORE_CTX_new_ex(ossl_pkcs7_ctx_get0_libctx(p7_ctx), in PKCS7_verify()
276 if (cert_ctx == NULL) in PKCS7_verify()
289 if (!X509_STORE_CTX_init(cert_ctx, store, signer, untrusted)) { in PKCS7_verify()
294 && !X509_STORE_CTX_set_default(cert_ctx, "smime_sign")) in PKCS7_verify()
297 X509_STORE_CTX_set0_crls(cert_ctx, p7->d.sign->crl); in PKCS7_verify()
298 i = X509_verify_cert(cert_ctx); in PKCS7_verify()
300 j = X509_STORE_CTX_get_error(cert_ctx); in PKCS7_verify()
357 X509_STORE_CTX_free(cert_ctx); in PKCS7_verify()
/openssl/crypto/ts/
H A Dts_rsp_verify.c174 X509_STORE_CTX *cert_ctx = NULL; in ts_verify_cert() local
179 cert_ctx = X509_STORE_CTX_new(); in ts_verify_cert()
180 if (cert_ctx == NULL) { in ts_verify_cert()
184 if (!X509_STORE_CTX_init(cert_ctx, store, signer, untrusted)) in ts_verify_cert()
186 X509_STORE_CTX_set_purpose(cert_ctx, X509_PURPOSE_TIMESTAMP_SIGN); in ts_verify_cert()
187 i = X509_verify_cert(cert_ctx); in ts_verify_cert()
189 int j = X509_STORE_CTX_get_error(cert_ctx); in ts_verify_cert()
194 *chain = X509_STORE_CTX_get1_chain(cert_ctx); in ts_verify_cert()
202 X509_STORE_CTX_free(cert_ctx); in ts_verify_cert()
/openssl/apps/
H A Dts.c978 X509_STORE *cert_ctx = NULL; in create_cert_store() local
983 cert_ctx = X509_STORE_new(); in create_cert_store()
984 if (cert_ctx == NULL) { in create_cert_store()
988 X509_STORE_set_verify_cb(cert_ctx, verify_cb); in create_cert_store()
990 lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_hash_dir()); in create_cert_store()
1002 lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_file()); in create_cert_store()
1015 lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_store()); in create_cert_store()
1027 X509_STORE_set1_param(cert_ctx, vpm); in create_cert_store()
1029 return cert_ctx; in create_cert_store()
1032 X509_STORE_free(cert_ctx); in create_cert_store()

Completed in 12 milliseconds