From: Sam Hartman Date: Tue, 9 Aug 2011 20:00:27 +0000 (+0000) Subject: Compile fix for WIN32 implementation of k5_get_os_entropy: declare HCRYPTPROV provider X-Git-Tag: krb5-1.10-alpha1~291 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7d87b9d01170cb9c9d959edf697c1f165455c1ff;p=krb5.git Compile fix for WIN32 implementation of k5_get_os_entropy: declare HCRYPTPROV provider Signed-off-by: Kevin Wasserman Signed-off-by: Sam Hartman git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25084 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/crypto/krb/prng.c b/src/lib/crypto/krb/prng.c index acece29bf..ad2745fa6 100644 --- a/src/lib/crypto/krb/prng.c +++ b/src/lib/crypto/krb/prng.c @@ -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);