From: Dr. Matthias St. Pierre Date: Tue, 2 Apr 2019 10:35:46 +0000 (+0200) Subject: rand_win.c: loosen version requirements for BCryptGenRandom X-Git-Tag: openssl-3.0.0-alpha1~2249 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=2621e6405d7f4765bc57c86ec441129e7d367f14 rand_win.c: loosen version requirements for BCryptGenRandom BCryptGenRandom() is available for Windows Vista and newer versions, see https://docs.microsoft.com/en-us/windows/desktop/api/bcrypt/nf-bcrypt-bcryptgenrandom Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/8639) --- diff --git a/crypto/rand/rand_win.c b/crypto/rand/rand_win.c index 02d96a8a2a..d5d5518dd0 100644 --- a/crypto/rand/rand_win.c +++ b/crypto/rand/rand_win.c @@ -19,8 +19,8 @@ # endif # include -/* On Windows 7 or higher use BCrypt instead of the legacy CryptoAPI */ -# if defined(_MSC_VER) && defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0601 +/* On Windows Vista or higher use BCrypt instead of the legacy CryptoAPI */ +# if defined(_MSC_VER) && defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x0600 # define USE_BCRYPTGENRANDOM # endif