OLD | NEW |
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 "net/base/test_root_certs.h" | 5 #include "net/cert/test_root_certs.h" |
6 | 6 |
7 #include <cert.h> | 7 #include <cert.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "crypto/nss_util.h" | 11 #include "crypto/nss_util.h" |
12 #include "net/base/x509_certificate.h" | 12 #include "net/cert/x509_certificate.h" |
13 | 13 |
14 #if defined(OS_IOS) | 14 #if defined(OS_IOS) |
15 #include "net/base/x509_util_ios.h" | 15 #include "net/cert/x509_util_ios.h" |
16 #endif | 16 #endif |
17 | 17 |
18 namespace net { | 18 namespace net { |
19 | 19 |
20 // TrustEntry is used to store the original CERTCertificate and CERTCertTrust | 20 // TrustEntry is used to store the original CERTCertificate and CERTCertTrust |
21 // for a certificate whose trust status has been changed by the | 21 // for a certificate whose trust status has been changed by the |
22 // TestRootCerts. | 22 // TestRootCerts. |
23 class TestRootCerts::TrustEntry { | 23 class TestRootCerts::TrustEntry { |
24 public: | 24 public: |
25 // Creates a new TrustEntry by incrementing the reference to |certificate| | 25 // Creates a new TrustEntry by incrementing the reference to |certificate| |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 TestRootCerts::~TestRootCerts() { | 117 TestRootCerts::~TestRootCerts() { |
118 Clear(); | 118 Clear(); |
119 } | 119 } |
120 | 120 |
121 void TestRootCerts::Init() { | 121 void TestRootCerts::Init() { |
122 crypto::EnsureNSSInit(); | 122 crypto::EnsureNSSInit(); |
123 } | 123 } |
124 | 124 |
125 } // namespace net | 125 } // namespace net |
OLD | NEW |