[email protected] | cf21188 | 2012-07-11 07:19:14 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 5 | #ifndef CRYPTO_CAPI_UTIL_H_ |
6 | #define CRYPTO_CAPI_UTIL_H_ | ||||
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 7 | |
8 | #include <windows.h> | ||||
avi | dd373b8b | 2015-12-21 21:34:43 | [diff] [blame] | 9 | #include <stddef.h> |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 10 | |
[email protected] | d613a990 | 2011-08-05 20:59:11 | [diff] [blame] | 11 | #include "crypto/crypto_export.h" |
[email protected] | e4c9dda | 2011-06-20 23:24:09 | [diff] [blame] | 12 | |
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 13 | namespace crypto { |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 14 | |
[email protected] | 68da887 | 2012-02-15 06:01:59 | [diff] [blame] | 15 | // Wrappers of malloc and free for CryptoAPI routines that need memory |
16 | // allocators, such as in CRYPT_DECODE_PARA. Such routines require WINAPI | ||||
17 | // calling conventions. | ||||
18 | CRYPTO_EXPORT void* WINAPI CryptAlloc(size_t size); | ||||
19 | CRYPTO_EXPORT void WINAPI CryptFree(void* p); | ||||
20 | |||||
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 21 | } // namespace crypto |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 22 | |
[email protected] | 4b559b4d | 2011-04-14 17:37:14 | [diff] [blame] | 23 | #endif // CRYPTO_CAPI_UTIL_H_ |