Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Unified Diff: crypto/capi_util.h

Issue 9358080: Properly parse UTF8Strings in certificates on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crypto/capi_util.cc » ('j') | net/base/x509_cert_types_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | crypto/capi_util.cc » ('j') | net/base/x509_cert_types_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698