OLD | NEW |
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 Loading... |
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 |
OLD | NEW |