Lines Matching refs:cert
28 // Returns true if this cert fingerprint is the null (all zero) fingerprint.
60 void Insert(X509Certificate* cert);
86 // Insert |cert| into the cache. The cache does NOT AddRef |cert|.
88 void X509CertificateCache::Insert(X509Certificate* cert) {
91 DCHECK(!IsNullFingerprint(cert->fingerprint())) <<
97 cache_[cert->fingerprint()] = cert;
177 // Else the new cert is better and will replace the old one in the cache.
181 scoped_refptr<X509Certificate> cert = new X509Certificate(cert_handle, source,
183 cache->Insert(cert);
184 return cert;
218 scoped_refptr<X509Certificate> cert =
224 return cert;
234 scoped_refptr<X509Certificate> cert = CreateFromHandle(cert_handle,
238 return cert;
277 scoped_refptr<X509Certificate> cert = CreateFromHandle(cert_handle, SOURCE_FROM_CACHE,
283 return cert;
392 bool X509Certificate::HasIntermediateCertificate(OSCertHandle cert) {
394 if (IsSameOSCert(cert, intermediate_ca_certs_[i]))
481 // Catch badly corrupt cert names up front.
483 LOG(WARNING) << "Bad name in cert: " << *it;
493 // The hostname must be at least as long as the cert name it is matching,
501 // Next see if this cert name starts with a wildcard, so long as the
516 // detect these and skip those candidate cert names.
522 << ") in cert names " << JoinString(cert_names, '|');
539 // Copy/retain the intermediate cert handles.