aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorJoey Yandle <dragon@dancingdragon.be>2015-12-23 10:39:09 -0800
committerRich Salz <rsalz@openssl.org>2016-05-29 13:36:59 -0400
commit4447d829de82ac2e26e2a8b3c8e2b248b09f5ac2 (patch)
tree61d6db46fe6a386fceb04be82b718c766ac2ad30 /crypto
parent1cd02c699f888ad5a0ed943148db38eef0366445 (diff)
downloadopenssl-4447d829de82ac2e26e2a8b3c8e2b248b09f5ac2.tar.gz
OR flags with CRYPT_SILENT to really make sure no UI pops up
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/1079)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/rand_win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c
index d4398ec244..812ca9d2c8 100644
--- a/crypto/rand/rand_win.c
+++ b/crypto/rand/rand_win.c
@@ -68,7 +68,7 @@ int RAND_poll(void)
/* poll the CryptoAPI PRNG */
/* The CryptoAPI returns sizeof(buf) bytes of randomness */
- if (CryptAcquireContextW(&hProvider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
+ if (CryptAcquireContextW(&hProvider, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
if (CryptGenRandom(hProvider, sizeof(buf), buf) != 0) {
RAND_add(buf, sizeof(buf), sizeof(buf));
}
@@ -76,7 +76,7 @@ int RAND_poll(void)
}
/* poll the Pentium PRG with CryptoAPI */
- if (CryptAcquireContextW(&hProvider, NULL, INTEL_DEF_PROV, PROV_INTEL_SEC, CRYPT_VERIFYCONTEXT)) {
+ if (CryptAcquireContextW(&hProvider, NULL, INTEL_DEF_PROV, PROV_INTEL_SEC, CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
if (CryptGenRandom(hProvider, sizeof(buf), buf) != 0) {
RAND_add(buf, sizeof(buf), sizeof(buf));
}