From 7d87b9d01170cb9c9d959edf697c1f165455c1ff Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Tue, 9 Aug 2011 20:00:27 +0000 Subject: [PATCH] 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 --- src/lib/crypto/krb/prng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2