diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-24 17:06:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-10-02 21:22:33 +0900 |
commit | e0ef4899f3ef2561ae32275c2c3d11914e7343c7 (patch) | |
tree | d8f87e7eccb08b9ebe4a42b0082d1c1cc1a0dcbd /configure.ac | |
parent | b8327fb8b10615ddb3f5e1978d6d83be465503a9 (diff) |
[Win32] Prefer Cryptography Next Generation API
[BCryptGenRandom] is available since Windows Vista / Windows
Server 2008.
Regarding [CryptGenRandom]:
> This API is deprecated. New and existing software should start
> using Cryptography Next Generation APIs. Microsoft may remove
> this API in future releases.
[BCryptGenRandom]: https://docs.microsoft.com/en-us/windows/win32/api/bcrypt/nf-bcrypt-bcryptgenrandom
[CryptGenRandom]: https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptgenrandom
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4924
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b65ccf4b31..fc9a9967f3 100644 --- a/configure.ac +++ b/configure.ac @@ -1115,7 +1115,7 @@ main() AC_CHECK_FUNCS(cygwin_conv_path) AC_LIBOBJ([langinfo]) ], -[mingw*], [ LIBS="-lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi $LIBS" +[mingw*], [ LIBS="-lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt $LIBS" ac_cv_header_pwd_h=no ac_cv_header_utime_h=no ac_cv_header_sys_ioctl_h=no |