Home
last modified time | relevance | path

Searched refs:dns_names (Results 1 – 8 of 8) sorted by relevance

/external/chromium/chrome/browser/ssl/
Dssl_error_info.cc44 std::vector<std::string> dns_names; in CreateError() local
45 cert->GetDNSNames(&dns_names); in CreateError()
46 DCHECK(!dns_names.empty()); in CreateError()
48 for (; i < dns_names.size(); ++i) { in CreateError()
49 if (dns_names[i] == cert->subject().common_name) in CreateError()
52 if (i == dns_names.size()) in CreateError()
57 UTF8ToUTF16(dns_names[i]), in CreateError()
/external/chromium/net/base/
Dx509_certificate_unittest.cc223 std::vector<std::string> dns_names; in CheckGoogleCert() local
224 google_cert->GetDNSNames(&dns_names); in CheckGoogleCert()
225 ASSERT_EQ(1U, dns_names.size()); in CheckGoogleCert()
226 EXPECT_EQ("www.google.com", dns_names[0]); in CheckGoogleCert()
289 std::vector<std::string> dns_names; in TEST() local
290 webkit_cert->GetDNSNames(&dns_names); in TEST()
291 ASSERT_EQ(2U, dns_names.size()); in TEST()
292 EXPECT_EQ("*.webkit.org", dns_names[0]); in TEST()
293 EXPECT_EQ("webkit.org", dns_names[1]); in TEST()
352 std::vector<std::string> dns_names; in TEST() local
[all …]
Dx509_certificate_openssl.cc98 std::vector<std::string>* dns_names) { in ParseSubjectAltNames() argument
116 dns_names->push_back( in ParseSubjectAltNames()
397 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames()
398 dns_names->clear(); in GetDNSNames()
400 ParseSubjectAltNames(cert_handle_, dns_names); in GetDNSNames()
402 if (dns_names->empty()) in GetDNSNames()
403 dns_names->push_back(subject_.common_name); in GetDNSNames()
Dx509_certificate_mac.cc109 std::vector<std::string>* dns_names) { in OverrideHostnameMismatch() argument
124 for (std::vector<std::string>::const_iterator name = dns_names->begin(); in OverrideHostnameMismatch()
125 name != dns_names->end() && !override_hostname_mismatch; ++name) in OverrideHostnameMismatch()
776 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames()
777 dns_names->clear(); in GetDNSNames()
780 dns_names); in GetDNSNames()
782 if (dns_names->empty()) in GetDNSNames()
783 dns_names->push_back(subject_.common_name); in GetDNSNames()
Dx509_certificate_win.cc615 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames()
616 dns_names->clear(); in GetDNSNames()
627 dns_names->push_back( in GetDNSNames()
632 if (dns_names->empty()) in GetDNSNames()
633 dns_names->push_back(subject_.common_name); in GetDNSNames()
Dx509_certificate_nss.cc754 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames()
755 dns_names->clear(); in GetDNSNames()
758 GetCertSubjectAltNamesOfType(cert_handle_, certDNSName, dns_names); in GetDNSNames()
760 if (dns_names->empty()) in GetDNSNames()
761 dns_names->push_back(subject_.common_name); in GetDNSNames()
Dx509_certificate.cc528 std::vector<std::string> dns_names; in VerifyNameMatch() local
529 GetDNSNames(&dns_names); in VerifyNameMatch()
530 return VerifyHostname(hostname, dns_names); in VerifyNameMatch()
Dx509_certificate.h226 void GetDNSNames(std::vector<std::string>* dns_names) const;