avoid using declaration after statements (rng_win32)
This commit is contained in:
parent
7c1e251e75
commit
15b3f39a4f
@ -108,8 +108,8 @@ static unsigned long rng_ansic(unsigned char *buf, unsigned long len,
|
|||||||
static unsigned long rng_win32(unsigned char *buf, unsigned long len,
|
static unsigned long rng_win32(unsigned char *buf, unsigned long len,
|
||||||
void (*callback)(void))
|
void (*callback)(void))
|
||||||
{
|
{
|
||||||
LTC_UNUSED_PARAM(callback);
|
|
||||||
HCRYPTPROV hProv = 0;
|
HCRYPTPROV hProv = 0;
|
||||||
|
LTC_UNUSED_PARAM(callback);
|
||||||
if (!CryptAcquireContext(&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
if (!CryptAcquireContext(&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
||||||
(CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET)) &&
|
(CRYPT_VERIFYCONTEXT | CRYPT_MACHINE_KEYSET)) &&
|
||||||
!CryptAcquireContext (&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
!CryptAcquireContext (&hProv, NULL, MS_DEF_PROV, PROV_RSA_FULL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user