diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 06:01:59 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-15 06:01:59 +0000 |
commit | 68da887c6a2acc6dac295bf27930eaeba8da0eed (patch) | |
tree | 1f2b6b6c608eeda607386c075107ee7797d3f8f4 /crypto/capi_util.h | |
parent | a9891b44234b0037a60a280de36f35d584e13cc1 (diff) | |
download | chromium_src-68da887c6a2acc6dac295bf27930eaeba8da0eed.zip chromium_src-68da887c6a2acc6dac295bf27930eaeba8da0eed.tar.gz chromium_src-68da887c6a2acc6dac295bf27930eaeba8da0eed.tar.bz2 |
Properly parse UTF8Strings in certificates on Windows.
BUG=114168
TEST=https://www.verisign.co.jp appears correctly regardless of system
locale. Additionally, net_unittests:X509TypesTest* should cover this.
Review URL: https://chromiumcodereview.appspot.com/9358080
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122053 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/capi_util.h')
-rw-r--r-- | crypto/capi_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/capi_util.h b/crypto/capi_util.h index 3aa681e..1786a24 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 CryptAlloc(size_t size); +CRYPTO_EXPORT void WINAPI CryptFree(void* p); + } // namespace crypto #endif // CRYPTO_CAPI_UTIL_H_ |