Index: crypto/capi_util.h |
diff --git a/crypto/capi_util.h b/crypto/capi_util.h |
index 3aa681e5cb02adeb52946adc8e6595b297721e2c..13043f1337e1cd9d5bad5dbc86bc560c985c8f7e 100644 |
--- a/crypto/capi_util.h |
+++ b/crypto/capi_util.h |
@@ -29,6 +29,12 @@ CRYPTO_EXPORT BOOL CryptAcquireContextLocked(HCRYPTPROV* prov, |
DWORD prov_type, |
DWORD flags); |
+// Wrappers of malloc and free for CryptoAPI routines that need memory |
+// allocators, such as in CRYPT_DECODE_PARA. Such routines require WINAPI |
+// calling conventions. |
+CRYPTO_EXPORT void* WINAPI CryptAllocFunction(size_t size); |
+CRYPTO_EXPORT void WINAPI CryptFreeFunction(void* p); |
wtc
2012/02/15 01:34:41
Nit: omit "Function" in the function names.
|
+ |
} // namespace crypto |
#endif // CRYPTO_CAPI_UTIL_H_ |