Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: net/base/x509_certificate_unittest.cc

Issue 8368015: Record when certificates signed with md[2,4,5] are encountered when using OpenSSL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debug statement Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 #include "base/sha1.h" 9 #include "base/sha1.h"
10 #include "base/string_number_conversions.h" 10 #include "base/string_number_conversions.h"
(...skipping 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 } 1493 }
1494 } 1494 }
1495 1495
1496 EXPECT_EQ(test_data.expected, X509Certificate::VerifyHostname( 1496 EXPECT_EQ(test_data.expected, X509Certificate::VerifyHostname(
1497 test_data.hostname, common_name, dns_names, ip_addressses)); 1497 test_data.hostname, common_name, dns_names, ip_addressses));
1498 } 1498 }
1499 1499
1500 INSTANTIATE_TEST_CASE_P(, X509CertificateNameVerifyTest, 1500 INSTANTIATE_TEST_CASE_P(, X509CertificateNameVerifyTest,
1501 testing::ValuesIn(kNameVerifyTestData)); 1501 testing::ValuesIn(kNameVerifyTestData));
1502 1502
1503 // Not implemented on Mac or OpenSSL - http://crbug.com/101123 1503 // Not implemented on Mac - http://crbug.com/101123
1504 #if defined(USE_NSS) || defined(OS_WIN) 1504 #if defined(USE_NSS) || defined(USE_OPENSSL) || defined(OS_WIN)
1505 1505
1506 struct WeakDigestTestData { 1506 struct WeakDigestTestData {
1507 const char* root_cert_filename; 1507 const char* root_cert_filename;
1508 const char* intermediate_cert_filename; 1508 const char* intermediate_cert_filename;
1509 const char* ee_cert_filename; 1509 const char* ee_cert_filename;
1510 bool expected_has_md5; 1510 bool expected_has_md5;
1511 bool expected_has_md4; 1511 bool expected_has_md4;
1512 bool expected_has_md2; 1512 bool expected_has_md2;
1513 bool expected_has_md5_ca; 1513 bool expected_has_md5_ca;
1514 bool expected_has_md2_ca; 1514 bool expected_has_md2_ca;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 #define MAYBE_VerifyMixed VerifyMixed 1695 #define MAYBE_VerifyMixed VerifyMixed
1696 #endif 1696 #endif
1697 WRAPPED_INSTANTIATE_TEST_CASE_P( 1697 WRAPPED_INSTANTIATE_TEST_CASE_P(
1698 MAYBE_VerifyMixed, 1698 MAYBE_VerifyMixed,
1699 X509CertificateWeakDigestTest, 1699 X509CertificateWeakDigestTest,
1700 testing::ValuesIn(kVerifyMixedTestData)); 1700 testing::ValuesIn(kVerifyMixedTestData));
1701 1701
1702 #endif // defined(USE_NSS) || defined(OS_WIN) 1702 #endif // defined(USE_NSS) || defined(OS_WIN)
1703 1703
1704 } // namespace net 1704 } // namespace net
OLDNEW
« net/base/x509_certificate_openssl.cc ('K') | « net/base/x509_certificate_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698