Upload upstream chromium 67.0.3396
[platform/framework/web/chromium-efl.git] / crypto / capi_util.h
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
3 // found in the LICENSE file.
4
5 #ifndef CRYPTO_CAPI_UTIL_H_
6 #define CRYPTO_CAPI_UTIL_H_
7
8 #include <windows.h>
9 #include <stddef.h>
10
11 #include "crypto/crypto_export.h"
12
13 namespace crypto {
14
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
21 }  // namespace crypto
22
23 #endif  // CRYPTO_CAPI_UTIL_H_