Use explicitly Unicode Win32 APIs.

This commit is contained in:
evoskuil 2014-05-10 19:28:24 -07:00
parent 63a7e26499
commit 4ab3d21529
2 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ randombytes_salsa20_random_init(void)
stream.nonce = sodium_hrtime(); stream.nonce = sodium_hrtime();
assert(stream.nonce != (uint64_t) 0U); assert(stream.nonce != (uint64_t) 0U);
if (! CryptAcquireContext(&stream.hcrypt_prov, NULL, NULL, if (! CryptAcquireContextW(&stream.hcrypt_prov, NULL, NULL,
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
abort(); abort();
} }

View File

@ -141,7 +141,7 @@ randombytes_sysrandom_init(void)
static void static void
randombytes_sysrandom_init(void) randombytes_sysrandom_init(void)
{ {
if (! CryptAcquireContext(&stream.hcrypt_prov, NULL, NULL, if (! CryptAcquireContextW(&stream.hcrypt_prov, NULL, NULL,
PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) { PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
abort(); abort();
} }