Home
last modified time | relevance | path

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

/external/chromium_org/chrome/browser/ssl/
Dssl_error_classification.cc248 std::vector<std::string> dns_names; in InvalidCommonNameSeverityScore() local
249 cert_.GetDNSNames(&dns_names); in InvalidCommonNameSeverityScore()
250 std::vector<Tokens> dns_name_tokens = GetTokenizedDNSNames(dns_names); in InvalidCommonNameSeverityScore()
288 std::vector<std::string> dns_names; in RecordUMAStatistics() local
289 cert_.GetDNSNames(&dns_names); in RecordUMAStatistics()
290 std::vector<Tokens> dns_name_tokens = GetTokenizedDNSNames(dns_names); in RecordUMAStatistics()
390 GetTokenizedDNSNames(const std::vector<std::string>& dns_names) { in GetTokenizedDNSNames() argument
392 for (size_t i = 0; i < dns_names.size(); ++i) { in GetTokenizedDNSNames()
394 if (dns_names[i].empty() || dns_names[i].find('\0') != std::string::npos in GetTokenizedDNSNames()
395 || !(IsHostNameKnownTLD(dns_names[i]))) { in GetTokenizedDNSNames()
[all …]
Dssl_error_info.cc41 std::vector<std::string> dns_names; in CreateError() local
42 cert->GetDNSNames(&dns_names); in CreateError()
43 DCHECK(!dns_names.empty()); in CreateError()
45 for (; i < dns_names.size(); ++i) { in CreateError()
46 if (dns_names[i] == cert->subject().common_name) in CreateError()
49 if (i == dns_names.size()) in CreateError()
55 UTF8ToUTF16(dns_names[i]))); in CreateError()
Dssl_error_classification.h109 const std::vector<std::string>& dns_names);
/external/chromium_org/net/cert/
Dcert_verify_proc.cc226 std::vector<std::string> dns_names, ip_addrs; in Verify() local
227 cert->GetSubjectAltName(&dns_names, &ip_addrs); in Verify()
230 dns_names, in Verify()
467 static bool CheckNameConstraints(const std::vector<std::string>& dns_names, in CheckNameConstraints() argument
469 for (std::vector<std::string>::const_iterator i = dns_names.begin(); in CheckNameConstraints()
470 i != dns_names.end(); ++i) { in CheckNameConstraints()
520 const std::vector<std::string>& dns_names, in HasNameConstraintsViolation() argument
598 if (dns_names.empty() && ip_addrs.empty()) { in HasNameConstraintsViolation()
599 std::vector<std::string> dns_names; in HasNameConstraintsViolation() local
600 dns_names.push_back(common_name); in HasNameConstraintsViolation()
[all …]
Dx509_certificate_unittest.cc129 std::vector<std::string> dns_names; in CheckGoogleCert() local
130 google_cert->GetDNSNames(&dns_names); in CheckGoogleCert()
131 ASSERT_EQ(1U, dns_names.size()); in CheckGoogleCert()
132 EXPECT_EQ("www.google.com", dns_names[0]); in CheckGoogleCert()
186 std::vector<std::string> dns_names; in TEST() local
187 webkit_cert->GetDNSNames(&dns_names); in TEST()
188 ASSERT_EQ(2U, dns_names.size()); in TEST()
189 EXPECT_EQ("*.webkit.org", dns_names[0]); in TEST()
190 EXPECT_EQ("webkit.org", dns_names[1]); in TEST()
242 std::vector<std::string> dns_names; in TEST() local
[all …]
Dx509_certificate_openssl.cc98 std::vector<std::string>* dns_names, in ParseSubjectAltName() argument
100 DCHECK(dns_names || ip_addresses); in ParseSubjectAltName()
113 if (name->type == GEN_DNS && dns_names) { in ParseSubjectAltName()
118 dns_names->push_back( in ParseSubjectAltName()
293 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
295 if (dns_names) in GetSubjectAltName()
296 dns_names->clear(); in GetSubjectAltName()
300 ParseSubjectAltName(cert_handle_, dns_names, ip_addrs); in GetSubjectAltName()
Dx509_certificate_ios.cc89 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
94 if (dns_names) in GetSubjectAltName()
95 dns_names->clear(); in GetSubjectAltName()
100 x509_util::GetSubjectAltName(cert_handle, dns_names, ip_addrs); in GetSubjectAltName()
Dx509_certificate.cc492 void X509Certificate::GetDNSNames(std::vector<std::string>* dns_names) const { in GetDNSNames()
493 GetSubjectAltName(dns_names, NULL); in GetDNSNames()
494 if (dns_names->empty()) in GetDNSNames()
495 dns_names->push_back(subject_.common_name); in GetDNSNames()
659 std::vector<std::string> dns_names, ip_addrs; in VerifyNameMatch() local
660 GetSubjectAltName(&dns_names, &ip_addrs); in VerifyNameMatch()
661 return VerifyHostname(hostname, subject_.common_name, dns_names, ip_addrs, in VerifyNameMatch()
Dx509_certificate_win.cc169 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
171 if (dns_names) in GetSubjectAltName()
172 dns_names->clear(); in GetSubjectAltName()
189 if (dns_names && entry.dwAltNameChoice == CERT_ALT_NAME_DNS_NAME) { in GetSubjectAltName()
190 dns_names->push_back(base::UTF16ToASCII(entry.pwszDNSName)); in GetSubjectAltName()
Dx509_certificate_mac.cc233 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
235 if (dns_names) in GetSubjectAltName()
236 dns_names->clear(); in GetSubjectAltName()
261 if (dns_names && name_struct.nameType == GNT_DNSName) { in GetSubjectAltName()
262 dns_names->push_back(std::string( in GetSubjectAltName()
Dx509_util_nss.cc448 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
450 if (dns_names) in GetSubjectAltName()
451 dns_names->clear(); in GetSubjectAltName()
474 if (dns_names && name->type == certDNSName) { in GetSubjectAltName()
475 dns_names->push_back(std::string( in GetSubjectAltName()
Dx509_certificate.h229 void GetDNSNames(std::vector<std::string>* dns_names) const;
235 void GetSubjectAltName(std::vector<std::string>* dns_names,
Dcert_verify_proc.h99 const std::vector<std::string>& dns_names,
Dx509_util_nss.h41 std::vector<std::string>* dns_names,
Dx509_certificate_nss.cc117 std::vector<std::string>* dns_names, in GetSubjectAltName() argument
119 x509_util::GetSubjectAltName(cert_handle_, dns_names, ip_addrs); in GetSubjectAltName()
/external/chromium_org/net/quic/
Dquic_connection_logger.cc252 std::vector<std::string> dns_names; in NetLogQuicCertificateVerifiedCallback() local
253 cert->GetDNSNames(&dns_names); in NetLogQuicCertificateVerifiedCallback()
256 for (std::vector<std::string>::const_iterator it = dns_names.begin(); in NetLogQuicCertificateVerifiedCallback()
257 it != dns_names.end(); it++) { in NetLogQuicCertificateVerifiedCallback()