Home | History | Annotate | Download | only in cert

Lines Matching refs:cert_handle

46 bool IsCertIssuerInEncodedList(X509Certificate::OSCertHandle cert_handle,
49 if (cached_cert.Init(cert_handle) != CSSM_OK)
126 // Test that a given |cert_handle| is actually a valid X.509 certificate, and
137 bool IsValidOSCertHandle(SecCertificateRef cert_handle) {
139 OSStatus status = SecCertificateGetSubject(cert_handle, &sanity_check);
274 bool X509Certificate::GetDEREncoded(X509Certificate::OSCertHandle cert_handle,
277 if (!cert_handle || SecCertificateGetData(cert_handle, &der_data) != noErr)
306 OSCertHandle cert_handle = NULL;
310 &cert_handle);
313 if (!IsValidOSCertHandle(cert_handle)) {
314 CFRelease(cert_handle);
317 return cert_handle;
352 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) {
353 if (cert_handle)
354 CFRelease(cert_handle);
460 bool X509Certificate::WriteOSCertHandleToPickle(OSCertHandle cert_handle,
463 OSStatus status = SecCertificateGetData(cert_handle, &cert_data);
472 void X509Certificate::GetPublicKeyInfo(OSCertHandle cert_handle,
480 OSStatus status = SecCertificateCopyPublicKey(cert_handle, &key);