Windows: fallback to PROV_RNG if no PROV_RSA_FULL
commit0f3a1ab9e860015a21960ec34d73d64d0f943875
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 20 Sep 2011 20:17:42 +0000 (20 16:17 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 20 Sep 2011 20:24:18 +0000 (20 16:24 -0400)
treed1db2b4a360ef1ea4324bd7cc2f665010813b7bc
parent25f5314c350ea41a777842bfd93ac266eea0926b
Windows: fallback to PROV_RNG if no PROV_RSA_FULL

Heimdal can be executed in environments in which the user
account profile is not loaded.  In such environments it is
not possible to use PROV_RSA_FULL as it stores required
data within the profile.  Instead, fallback to PROV_RNG which
does not store data within the profile and can be used to access
secure random number generator routines.

(cherry picked from commit 63b3cb97494201cce2c34b1c9a8b28f918846689)

Change-Id: Ib618676e37d141709a1c53b8eac306dedf26f994
lib/hcrypto/rand-w32.c