OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "net/cert/cert_verify_proc.h" | 5 #include "net/cert/cert_verify_proc.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
13 #include "base/sha1.h" | 14 #include "base/sha1.h" |
14 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
15 #include "crypto/sha2.h" | 16 #include "crypto/sha2.h" |
16 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
17 #include "net/base/test_data_directory.h" | 18 #include "net/base/test_data_directory.h" |
18 #include "net/cert/asn1_util.h" | 19 #include "net/cert/asn1_util.h" |
19 #include "net/cert/cert_status_flags.h" | 20 #include "net/cert/cert_status_flags.h" |
20 #include "net/cert/cert_verifier.h" | 21 #include "net/cert/cert_verifier.h" |
21 #include "net/cert/cert_verify_result.h" | 22 #include "net/cert/cert_verify_result.h" |
22 #include "net/cert/crl_set.h" | 23 #include "net/cert/crl_set.h" |
(...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1699 int flags = 0; | 1700 int flags = 0; |
1700 CertVerifyResult verify_result; | 1701 CertVerifyResult verify_result; |
1701 int error = Verify(cert.get(), "127.0.0.1", flags, NULL, empty_cert_list_, | 1702 int error = Verify(cert.get(), "127.0.0.1", flags, NULL, empty_cert_list_, |
1702 &verify_result); | 1703 &verify_result); |
1703 EXPECT_EQ(ERR_CERT_INVALID, error); | 1704 EXPECT_EQ(ERR_CERT_INVALID, error); |
1704 EXPECT_EQ(CERT_STATUS_INVALID, verify_result.cert_status); | 1705 EXPECT_EQ(CERT_STATUS_INVALID, verify_result.cert_status); |
1705 } | 1706 } |
1706 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 1707 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
1707 | 1708 |
1708 } // namespace net | 1709 } // namespace net |
OLD | NEW |