Lines Matching refs:cert_handle
236 bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle,
238 if (!cert_handle || !cert_handle->pbCertEncoded ||
239 !cert_handle->cbCertEncoded) {
242 encoded->assign(reinterpret_cast<char*>(cert_handle->pbCertEncoded),
243 cert_handle->cbCertEncoded);
260 OSCertHandle cert_handle = NULL;
263 length, CERT_STORE_ADD_USE_EXISTING, &cert_handle))
266 return cert_handle;
292 OSCertHandle cert_handle) {
293 return CertDuplicateCertificateContext(cert_handle);
297 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) {
298 CertFreeCertificateContext(cert_handle);
362 OSCertHandle cert_handle = NULL;
366 NULL, reinterpret_cast<const void **>(&cert_handle))) {
371 bool ok = GetDEREncoded(cert_handle, &encoded);
372 FreeOSCertHandle(cert_handle);
373 cert_handle = NULL;
376 cert_handle = CreateOSCertHandleFromBytes(encoded.data(), encoded.size());
377 return cert_handle;
381 bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle,
384 reinterpret_cast<char*>(cert_handle->pbCertEncoded),
385 cert_handle->cbCertEncoded);
389 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle,
397 cert_handle->pCertInfo->SubjectPublicKeyInfo.Algorithm.pszObjId,
407 &cert_handle->pCertInfo->SubjectPublicKeyInfo);