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

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

Issue 686883002: Add crypto/wincrypt_shim.h wrapper header to resolve BoringSSL conflicts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sleevi comments Created 6 years, 1 month 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
« no previous file with comments | « net/cert/sha256_legacy_support_win.h ('k') | net/cert/test_root_certs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sha256_legacy_support_win.h" 5 #include "net/cert/sha256_legacy_support_win.h"
6 6
7 #include <windows.h>
8 #include <wincrypt.h>
9
10 #include <cert.h> 7 #include <cert.h>
11 #include <keyhi.h> 8 #include <keyhi.h>
12 #include <secoid.h> 9 #include <secoid.h>
13 10
14 #include "base/lazy_instance.h" 11 #include "base/lazy_instance.h"
15 #include "base/logging.h" 12 #include "base/logging.h"
16 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
17 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
18 #include "crypto/scoped_nss_types.h" 15 #include "crypto/scoped_nss_types.h"
19 16
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 if (rv != SECSuccess) { 183 if (rv != SECSuccess) {
187 SetLastError(static_cast<DWORD>(NTE_BAD_SIGNATURE)); 184 SetLastError(static_cast<DWORD>(NTE_BAD_SIGNATURE));
188 return FALSE; 185 return FALSE;
189 } 186 }
190 return TRUE; 187 return TRUE;
191 } 188 }
192 189
193 } // namespace sha256_interception 190 } // namespace sha256_interception
194 191
195 } // namespace net 192 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/sha256_legacy_support_win.h ('k') | net/cert/test_root_certs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698