Lines Matching defs:cert_handle
599 PCCERT_CONTEXT cert_handle =
603 DCHECK(cert_handle) << "Failed to create self-signed certificate: "
605 if (!cert_handle)
608 X509Certificate* cert = CreateFromHandle(cert_handle,
611 FreeOSCertHandle(cert_handle);
951 OSCertHandle cert_handle = NULL;
957 &cert_handle))
960 return cert_handle;
987 OSCertHandle cert_handle) {
988 return CertDuplicateCertificateContext(cert_handle);
992 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) {
993 CertFreeCertificateContext(cert_handle);
1022 OSCertHandle cert_handle = NULL;
1027 NULL, reinterpret_cast<const void **>(&cert_handle))) {
1031 return cert_handle;
1035 bool X509Certificate::WriteCertHandleToPickle(OSCertHandle cert_handle,
1038 if (!CertSerializeCertificateStoreElement(cert_handle, 0, NULL, &length))
1042 // Serialize |cert_handle| in a way that will preserve any extended
1045 if (!CertSerializeCertificateStoreElement(cert_handle, 0, &buffer[0],