Compile fix for WIN32 implementation of k5_get_os_entropy: declare HCRYPTPROV provider
authorSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:00:27 +0000 (20:00 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 9 Aug 2011 20:00:27 +0000 (20:00 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Signed-off-by: Sam Hartman <hartmans@painless-security.com>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25084 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/krb/prng.c

index acece29bfe682decbe11986f07be5b3fef6a4577..ad2745fa6a3b691ed4176357b34cf149437da428 100644 (file)
@@ -39,7 +39,7 @@ krb5_boolean
 k5_get_os_entropy(unsigned char *buf, size_t len)
 {
     krb5_boolean result;
-
+    HCRYPTPROV provider;
     if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, 0))
         return FALSE;
     result = CryptGenRandom(provider, len, buf);