svn rev #25084: trunk/src/lib/crypto/krb/

hartmans@MIT.EDU hartmans at MIT.EDU
Tue Aug 9 16:00:27 EDT 2011


http://src.mit.edu/fisheye/changelog/krb5/?cs=25084
Commit By: hartmans
Log Message:
Compile fix for WIN32 implementation of k5_get_os_entropy: declare HCRYPTPROV provider.

Signed-off-by: Kevin Wasserman <kevin.wasserman at painless-security.com>
Signed-off-by: Sam Hartman <hartmans at painless-security.com>


Changed Files:
U   trunk/src/lib/crypto/krb/prng.c
Modified: trunk/src/lib/crypto/krb/prng.c
===================================================================
--- trunk/src/lib/crypto/krb/prng.c	2011-08-09 20:00:21 UTC (rev 25083)
+++ trunk/src/lib/crypto/krb/prng.c	2011-08-09 20:00:27 UTC (rev 25084)
@@ -39,7 +39,7 @@
 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);




More information about the cvs-krb5 mailing list