capi_util.h 647 B

1234567891011121314151617181920212223
  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. #ifndef CRYPTO_CAPI_UTIL_H_
  5. #define CRYPTO_CAPI_UTIL_H_
  6. #include <windows.h>
  7. #include <stddef.h>
  8. #include "crypto/crypto_export.h"
  9. namespace crypto {
  10. // Wrappers of malloc and free for CryptoAPI routines that need memory
  11. // allocators, such as in CRYPT_DECODE_PARA. Such routines require WINAPI
  12. // calling conventions.
  13. CRYPTO_EXPORT void* WINAPI CryptAlloc(size_t size);
  14. CRYPTO_EXPORT void WINAPI CryptFree(void* p);
  15. } // namespace crypto
  16. #endif // CRYPTO_CAPI_UTIL_H_