Lines Matching refs:cert
1298 PCCERT_CONTEXT cert)
1303 if (!CertGetCertificateContextProperty(cert, CERT_KEY_PROV_INFO_PROP_ID,
1311 if (!CertGetCertificateContextProperty(cert, CERT_KEY_PROV_INFO_PROP_ID,
1346 static char *capi_cert_get_fname(CAPI_CTX *ctx, PCCERT_CONTEXT cert)
1352 if (!CertGetCertificateContextProperty(cert, CERT_FRIENDLY_NAME_PROP_ID,
1358 if (CertGetCertificateContextProperty(cert, CERT_FRIENDLY_NAME_PROP_ID,
1371 static void capi_dump_cert(CAPI_CTX *ctx, BIO *out, PCCERT_CONTEXT cert)
1378 fname = capi_cert_get_fname(ctx, cert);
1387 p = cert->pbCertEncoded;
1388 x = d2i_X509(NULL, &p, cert->cbCertEncoded);
1403 pinfo = capi_get_prov_info(ctx, cert);
1438 PCCERT_CONTEXT cert = NULL;
1449 cert = capi_find_cert(ctx, id, hstore);
1450 if (!cert) {
1454 capi_dump_cert(ctx, out, cert);
1455 CertFreeCertificateContext(cert);
1458 cert = CertEnumCertificatesInStore(hstore, cert);
1459 if (!cert)
1462 capi_dump_cert(ctx, out, cert);
1473 PCCERT_CONTEXT cert = NULL;
1482 cert = CertEnumCertificatesInStore(hstore, cert);
1483 if (!cert)
1485 fname = capi_cert_get_fname(ctx, cert);
1493 return cert;
1552 static CAPI_KEY *capi_get_cert_key(CAPI_CTX *ctx, PCCERT_CONTEXT cert)
1557 pinfo = capi_get_prov_info(ctx, cert);
1569 PCCERT_CONTEXT cert;
1579 cert = capi_find_cert(ctx, id, hstore);
1580 if (cert) {
1581 key = capi_get_cert_key(ctx, cert);
1582 CertFreeCertificateContext(cert);
1726 PCCERT_CONTEXT cert = NULL, excert = NULL;
1743 cert = CertEnumCertificatesInStore(hstore, cert);
1744 if (!cert)
1746 p = cert->pbCertEncoded;
1747 x = d2i_X509(NULL, &p, cert->cbCertEncoded);
1754 key = capi_get_cert_key(ctx, cert);
1763 excert = CertDuplicateCertificateContext(cert);
1776 if (cert)
1777 CertFreeCertificateContext(cert);
1816 /* Simple client cert selection function: always select first */
1826 * More complex cert selection function, using standard function
1849 PCCERT_CONTEXT cert;
1884 cert = ctx->certselectdlg(dstore, hwnd, dlg_title, dlg_prompt,
1887 /* Find matching cert from list */
1888 if (cert) {
1893 (X509_ASN_ENCODING | PKCS_7_ASN_ENCODING, cert->pCertInfo,