diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/crypto/krb/prng.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/prng.c b/src/lib/crypto/krb/prng.c index bed2a46b92..e478b198d0 100644 --- a/src/lib/crypto/krb/prng.c +++ b/src/lib/crypto/krb/prng.c @@ -41,7 +41,8 @@ k5_get_os_entropy(unsigned char *buf, size_t len) krb5_boolean result; HCRYPTPROV provider; - if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, 0)) + if (!CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL, + CRYPT_VERIFYCONTEXT)) return FALSE; result = CryptGenRandom(provider, len, buf); (void)CryptReleaseContext(provider, 0); |
