Improve k5_get_os_entropy for Windows
authorGreg Hudson <ghudson@mit.edu>
Tue, 4 Oct 2011 15:11:45 +0000 (15:11 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 4 Oct 2011 15:11:45 +0000 (15:11 +0000)
commita046e6135690f97adfa6bb4065d7367cf6142c40
tree83145674cdcbef04017b372221302c4a73b9d7cd
parent70ba4b1d3410b80901d8be1e5e7e0a652ba326f4
Improve k5_get_os_entropy for Windows

When acquiring a crypto context for CryptGenRandom, pass
CRYPT_VERIFYCONTEXT to indicate that we don't need access to private
keys.  Appears to make OS entropy work on Windows XP.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25297 dc483132-0cff-0310-8789-dd5450dbe970
src/lib/crypto/krb/prng.c