OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CRYPTO_SCOPED_CAPI_TYPES_H_ | 5 #ifndef CRYPTO_SCOPED_CAPI_TYPES_H_ |
6 #define CRYPTO_SCOPED_CAPI_TYPES_H_ | 6 #define CRYPTO_SCOPED_CAPI_TYPES_H_ |
7 #pragma once | |
8 | 7 |
9 #include <windows.h> | 8 #include <windows.h> |
10 #include <wincrypt.h> | 9 #include <wincrypt.h> |
11 | 10 |
12 #include <algorithm> | 11 #include <algorithm> |
13 | 12 |
14 #include "base/logging.h" | 13 #include "base/logging.h" |
15 | 14 |
16 namespace crypto { | 15 namespace crypto { |
17 | 16 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 112 |
114 typedef ScopedCAPIHandle< | 113 typedef ScopedCAPIHandle< |
115 HCRYPTKEY, CAPIDestroyer<HCRYPTKEY, CryptDestroyKey> > ScopedHCRYPTKEY; | 114 HCRYPTKEY, CAPIDestroyer<HCRYPTKEY, CryptDestroyKey> > ScopedHCRYPTKEY; |
116 | 115 |
117 typedef ScopedCAPIHandle< | 116 typedef ScopedCAPIHandle< |
118 HCRYPTHASH, CAPIDestroyer<HCRYPTHASH, CryptDestroyHash> > ScopedHCRYPTHASH; | 117 HCRYPTHASH, CAPIDestroyer<HCRYPTHASH, CryptDestroyHash> > ScopedHCRYPTHASH; |
119 | 118 |
120 } // namespace crypto | 119 } // namespace crypto |
121 | 120 |
122 #endif // CRYPTO_SCOPED_CAPI_TYPES_H_ | 121 #endif // CRYPTO_SCOPED_CAPI_TYPES_H_ |
OLD | NEW |