Searched refs:cert_ctx (Results 1 – 2 of 2) sorted by relevance
| /crypto/pkcs7/ |
| A D | pk7_smime.c | 224 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()
|
| /crypto/ts/ |
| A D | ts_rsp_verify.c | 176 X509_STORE_CTX *cert_ctx = NULL; in ts_verify_cert() local 181 cert_ctx = X509_STORE_CTX_new(); in ts_verify_cert() 182 if (cert_ctx == NULL) { in ts_verify_cert() 186 if (!X509_STORE_CTX_init(cert_ctx, store, signer, untrusted)) in ts_verify_cert() 188 X509_STORE_CTX_set_purpose(cert_ctx, X509_PURPOSE_TIMESTAMP_SIGN); in ts_verify_cert() 189 i = X509_verify_cert(cert_ctx); in ts_verify_cert() 191 int j = X509_STORE_CTX_get_error(cert_ctx); in ts_verify_cert() 196 *chain = X509_STORE_CTX_get1_chain(cert_ctx); in ts_verify_cert() 204 X509_STORE_CTX_free(cert_ctx); in ts_verify_cert()
|
Completed in 10 milliseconds