Home
last modified time | relevance | path

Searched refs:cert_handle (Results 1 – 5 of 5) sorted by relevance

/external/chromium/net/base/
Dx509_certificate.cc136 X509Certificate* X509Certificate::CreateFromHandle(OSCertHandle cert_handle, in CreateFromHandle() argument
138 DCHECK(cert_handle); in CreateFromHandle()
144 cache->Find(CalculateFingerprint(cert_handle)); in CreateFromHandle()
150 FreeOSCertHandle(cert_handle); in CreateFromHandle()
158 return new X509Certificate(cert_handle, source); in CreateFromHandle()
164 OSCertHandle cert_handle = CreateOSCertHandleFromBytes(data, length); in CreateFromBytes() local
165 if (!cert_handle) in CreateFromBytes()
168 return CreateFromHandle(cert_handle, SOURCE_LONE_CERT_IMPORT); in CreateFromBytes()
171 X509Certificate::X509Certificate(OSCertHandle cert_handle, Source source) in X509Certificate() argument
172 : cert_handle_(cert_handle), in X509Certificate()
Dx509_certificate_mac.cc245 OSStatus GetCertFields(X509Certificate::OSCertHandle cert_handle, in GetCertFields() argument
247 DCHECK(cert_handle); in GetCertFields()
251 OSStatus status = SecCertificateGetData(cert_handle, &cert_data); in GetCertFields()
255 status = SecCertificateGetCLHandle(cert_handle, &fields->cl_handle); in GetCertFields()
266 void GetCertGeneralNamesForOID(X509Certificate::OSCertHandle cert_handle, in GetCertGeneralNamesForOID() argument
276 OSStatus status = GetCertFields(cert_handle, &fields); in GetCertGeneralNamesForOID()
307 void GetCertDateForOID(X509Certificate::OSCertHandle cert_handle, in GetCertDateForOID() argument
312 OSStatus status = GetCertFields(cert_handle, &fields); in GetCertDateForOID()
659 OSCertHandle cert_handle = NULL; in CreateOSCertHandleFromBytes() local
663 &cert_handle); in CreateOSCertHandleFromBytes()
[all …]
Dx509_certificate_nss.cc282 void GetCertSubjectAltNamesOfType(X509Certificate::OSCertHandle cert_handle, in GetCertSubjectAltNamesOfType() argument
292 SECStatus rv = CERT_FindCertExtension(cert_handle, in GetCertSubjectAltNamesOfType()
327 SECStatus PKIXVerifyCert(X509Certificate::OSCertHandle cert_handle, in PKIXVerifyCert() argument
415 SECStatus rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, in PKIXVerifyCert()
428 rv = CERT_PKIXVerifyCert(cert_handle, certificateUsageSSLServer, in PKIXVerifyCert()
435 bool CheckCertPolicies(X509Certificate::OSCertHandle cert_handle, in CheckCertPolicies() argument
439 cert_handle, SEC_OID_X509_CERTIFICATE_POLICIES, &policy_ext); in CheckCertPolicies()
628 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { in FreeOSCertHandle() argument
629 CERT_DestroyCertificate(cert_handle); in FreeOSCertHandle()
Dx509_certificate.h157 static X509Certificate* CreateFromHandle(OSCertHandle cert_handle,
278 X509Certificate(OSCertHandle cert_handle, Source source);
293 static void FreeOSCertHandle(OSCertHandle cert_handle);
297 static Fingerprint CalculateFingerprint(OSCertHandle cert_handle);
Dx509_certificate_win.cc476 OSCertHandle cert_handle = NULL; in CreateFromPickle() local
481 NULL, reinterpret_cast<const void **>(&cert_handle))) in CreateFromPickle()
484 return CreateFromHandle(cert_handle, SOURCE_LONE_CERT_IMPORT); in CreateFromPickle()
728 OSCertHandle cert_handle = NULL; in CreateOSCertHandleFromBytes() local
734 &cert_handle)) in CreateOSCertHandleFromBytes()
737 return cert_handle; in CreateOSCertHandleFromBytes()
741 void X509Certificate::FreeOSCertHandle(OSCertHandle cert_handle) { in FreeOSCertHandle() argument
742 CertFreeCertificateContext(cert_handle); in FreeOSCertHandle()