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

Side by Side Diff: net/cert/test_root_certs_mac.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 months 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698