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

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: Extract AppendPublicKeyHashes 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
« no previous file with comments | « net/base/x509_certificate_openssl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 } 1482 }
1483 } 1483 }
1484 1484
1485 EXPECT_EQ(test_data.expected, X509Certificate::VerifyHostname( 1485 EXPECT_EQ(test_data.expected, X509Certificate::VerifyHostname(
1486 test_data.hostname, common_name, dns_names, ip_addressses)); 1486 test_data.hostname, common_name, dns_names, ip_addressses));
1487 } 1487 }
1488 1488
1489 INSTANTIATE_TEST_CASE_P(, X509CertificateNameVerifyTest, 1489 INSTANTIATE_TEST_CASE_P(, X509CertificateNameVerifyTest,
1490 testing::ValuesIn(kNameVerifyTestData)); 1490 testing::ValuesIn(kNameVerifyTestData));
1491 1491
1492 // Not implemented on OpenSSL - http://crbug.com/101123
1493 #if defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX)
1494
1495 struct WeakDigestTestData { 1492 struct WeakDigestTestData {
1496 const char* root_cert_filename; 1493 const char* root_cert_filename;
1497 const char* intermediate_cert_filename; 1494 const char* intermediate_cert_filename;
1498 const char* ee_cert_filename; 1495 const char* ee_cert_filename;
1499 bool expected_has_md5; 1496 bool expected_has_md5;
1500 bool expected_has_md4; 1497 bool expected_has_md4;
1501 bool expected_has_md2; 1498 bool expected_has_md2;
1502 bool expected_has_md5_ca; 1499 bool expected_has_md5_ca;
1503 bool expected_has_md2_ca; 1500 bool expected_has_md2_ca;
1504 }; 1501 };
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 #if defined(USE_NSS) 1686 #if defined(USE_NSS)
1690 #define MAYBE_VerifyMixed DISABLED_VerifyMixed 1687 #define MAYBE_VerifyMixed DISABLED_VerifyMixed
1691 #else 1688 #else
1692 #define MAYBE_VerifyMixed VerifyMixed 1689 #define MAYBE_VerifyMixed VerifyMixed
1693 #endif 1690 #endif
1694 WRAPPED_INSTANTIATE_TEST_CASE_P( 1691 WRAPPED_INSTANTIATE_TEST_CASE_P(
1695 MAYBE_VerifyMixed, 1692 MAYBE_VerifyMixed,
1696 X509CertificateWeakDigestTest, 1693 X509CertificateWeakDigestTest,
1697 testing::ValuesIn(kVerifyMixedTestData)); 1694 testing::ValuesIn(kVerifyMixedTestData));
1698 1695
1699 #endif // defined(USE_NSS) || defined(OS_WIN) || defined(OS_MACOSX)
1700
1701 } // namespace net 1696 } // namespace net
OLDNEW
« no previous file with comments | « net/base/x509_certificate_openssl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698