Home | History | Annotate | Download | only in cups

Lines Matching refs:cert

47 #  define SECURITY_FLAG_IGNORE_CERT_DATE_INVALID  0x00002000 /* Expired X509 Cert. */
72 static DWORD http_sspi_verify(PCCERT_CONTEXT cert, const char *common_name, DWORD dwCertFlags);
186 PCCERT_CONTEXT cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials));
191 if (cert)
193 if (CertNameToStr(X509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name)))
206 CertFreeCertificateContext(cert);
251 PCCERT_CONTEXT cert = NULL; /* Certificate to validate */
252 DWORD certFlags = 0; /* Cert verification flags */
259 cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials));
260 if (!cert)
275 if (http_sspi_verify(cert, common_name, certFlags) != SEC_E_OK)
278 CertFreeCertificateContext(cert);
295 PCCERT_CONTEXT cert = http_sspi_create_credential((http_credential_t *)cupsArrayFirst(credentials));
298 if (cert)
303 FileTimeToSystemTime(&(cert->pCertInfo->NotAfter), &systime);
314 CertFreeCertificateContext(cert);
335 PCCERT_CONTEXT cert; /* Certificate */
346 cert = http_sspi_create_credential(first);
348 if (cert)
353 time_t expiration; /* Expiration date of cert */
357 FileTimeToSystemTime(&(cert->pCertInfo->NotAfter), &systime);
368 if (CertNameToStr(X509_ASN_ENCODING, &(cert->pCertInfo->Subject), CERT_SIMPLE_NAME_STR, cert_name, sizeof(cert_name)))
387 CertFreeCertificateContext(cert);
1623 * Success! Get the server cert
1675 const LPWSTR container, /* I - Cert container name */
1873 const LPWSTR container, /* I - Cert container name */
1892 CERT_EXTENSIONS exts; /* Array of cert extensions */
2070 char common_name[512]; /* Common name for cert */
2322 PCCERT_CONTEXT cert, /* I - Server certificate */
2327 CERT_CHAIN_POLICY_PARA policyPara; /* Cert chain policy parameters */
2328 CERT_CHAIN_POLICY_STATUS policyStatus;/* Cert chain policy status */
2347 if (!cert)
2379 if (!CertGetCertificateChain(NULL, cert, NULL, cert->hCertStore, &chainPara, 0, NULL, &chainContext))