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

Side by Side Diff: net/cert/test_root_certs_win.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 <windows.h> 7 #include <windows.h>
8 #include <wincrypt.h> 8 #include <wincrypt.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/win/win_util.h" 13 #include "base/win/win_util.h"
14 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
15 #include "net/base/x509_certificate.h" 15 #include "net/cert/x509_certificate.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 namespace { 19 namespace {
20 20
21 // Provides a CertDllOpenStoreProv callback provider function, to be called 21 // Provides a CertDllOpenStoreProv callback provider function, to be called
22 // by CertOpenStore when the CERT_STORE_PROV_SYSTEM_W store is opened. See 22 // by CertOpenStore when the CERT_STORE_PROV_SYSTEM_W store is opened. See
23 // http://msdn.microsoft.com/en-us/library/aa376043(VS.85).aspx. 23 // http://msdn.microsoft.com/en-us/library/aa376043(VS.85).aspx.
24 BOOL WINAPI InterceptedOpenStoreW(LPCSTR store_provider, 24 BOOL WINAPI InterceptedOpenStoreW(LPCSTR store_provider,
25 DWORD encoding, 25 DWORD encoding,
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 void TestRootCerts::Init() { 205 void TestRootCerts::Init() {
206 empty_ = true; 206 empty_ = true;
207 temporary_roots_ = CertOpenStore( 207 temporary_roots_ = CertOpenStore(
208 CERT_STORE_PROV_MEMORY, 0, NULL, 208 CERT_STORE_PROV_MEMORY, 0, NULL,
209 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, NULL); 209 CERT_STORE_DEFER_CLOSE_UNTIL_LAST_FREE_FLAG, NULL);
210 DCHECK(temporary_roots_); 210 DCHECK(temporary_roots_);
211 } 211 }
212 212
213 } // namespace net 213 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698