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/base/test_root_certs.h" | 5 #include "net/cert/test_root_certs.h" |
6 | 6 |
7 #include <Security/Security.h> | 7 #include <Security/Security.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
11 #include "net/base/x509_certificate.h" | 11 #include "net/cert/x509_certificate.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 typedef OSStatus (*SecTrustSetAnchorCertificatesOnlyFuncPtr)(SecTrustRef, | 17 typedef OSStatus (*SecTrustSetAnchorCertificatesOnlyFuncPtr)(SecTrustRef, |
18 Boolean); | 18 Boolean); |
19 | 19 |
20 Boolean OurSecCertificateEqual(const void* value1, const void* value2) { | 20 Boolean OurSecCertificateEqual(const void* value1, const void* value2) { |
21 if (CFGetTypeID(value1) != SecCertificateGetTypeID() || | 21 if (CFGetTypeID(value1) != SecCertificateGetTypeID() || |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 } | 118 } |
119 | 119 |
120 TestRootCerts::~TestRootCerts() {} | 120 TestRootCerts::~TestRootCerts() {} |
121 | 121 |
122 void TestRootCerts::Init() { | 122 void TestRootCerts::Init() { |
123 temporary_roots_.reset(CFArrayCreateMutable(kCFAllocatorDefault, 0, | 123 temporary_roots_.reset(CFArrayCreateMutable(kCFAllocatorDefault, 0, |
124 &kCertArrayCallbacks)); | 124 &kCertArrayCallbacks)); |
125 } | 125 } |
126 | 126 |
127 } // namespace net | 127 } // namespace net |
OLD | NEW |