/external/chromium_org/chrome/browser/ssl/ |
D | ssl_error_classification.cc | 248 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 …]
|
D | ssl_error_info.cc | 41 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()
|
D | ssl_error_classification.h | 109 const std::vector<std::string>& dns_names);
|
/external/chromium_org/net/cert/ |
D | cert_verify_proc.cc | 226 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 …]
|
D | x509_certificate_unittest.cc | 129 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 …]
|
D | x509_certificate_openssl.cc | 98 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()
|
D | x509_certificate_ios.cc | 89 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()
|
D | x509_certificate.cc | 492 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()
|
D | x509_certificate_win.cc | 169 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()
|
D | x509_certificate_mac.cc | 233 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()
|
D | x509_util_nss.cc | 448 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()
|
D | x509_certificate.h | 229 void GetDNSNames(std::vector<std::string>* dns_names) const; 235 void GetSubjectAltName(std::vector<std::string>* dns_names,
|
D | cert_verify_proc.h | 99 const std::vector<std::string>& dns_names,
|
D | x509_util_nss.h | 41 std::vector<std::string>* dns_names,
|
D | x509_certificate_nss.cc | 117 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/ |
D | quic_connection_logger.cc | 252 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()
|